Skip to content

fix(nix): update stale vendorHash + add flake-build CI guard - #142

Merged
ZacxDev merged 1 commit into
mainfrom
zach/cli-flake-vendorhash
Jul 18, 2026
Merged

ZacxDev merged 1 commit into
mainfrom
zach/cli-flake-vendorhash

Conversation

@ZacxDev

@ZacxDev ZacxDev commented Jul 18, 2026

Copy link
Copy Markdown
Contributor

The pinned vendorHash was from v0.1.65; go.mod changed since (x/net/html added
in the htmlrender rewrite + security-PR dep bumps), so nix build/nix run github:civitai/cli failed with a vendorHash mismatch from ~v0.1.67 on. Update
to the current go.sum's hash and add a flake CI job so it can't silently drift
again on the next go.mod change.

The pinned vendorHash was from v0.1.65; go.mod changed since (x/net/html added
in the htmlrender rewrite + security-PR dep bumps), so `nix build`/`nix run
github:civitai/cli` failed with a vendorHash mismatch from ~v0.1.67 on. Update
to the current go.sum's hash and add a flake CI job so it can't silently drift
again on the next go.mod change.
Comment on lines +27 to +37
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: cachix/install-nix-action@v27
with:
extra_nix_config: |
experimental-features = nix-command flakes
- name: nix build .#default (validates vendorHash + build)
run: nix build .#default
- name: run the built binary
run: ./result/bin/civitai version
@ZacxDev
ZacxDev merged commit c428950 into main Jul 18, 2026
10 checks passed
@ZacxDev
ZacxDev deleted the zach/cli-flake-vendorhash branch July 18, 2026 05:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants