Repository navigation
fix(nix): update stale vendorHash + add flake-build CI guard - #142
Merged
Merged
Conversation
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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/clifailed with a vendorHash mismatch from ~v0.1.67 on. Updateto 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.