fix(flake): remove stale vendorHash; auto-compute on next build
The go.mod changes (goquery downgrade, x/net replace) invalidate the old vendorHash. Set to empty to auto-recompute, then replace with the actual hash from the build error.
This commit is contained in:
parent
b2cca0a346
commit
a85d8033c7
1 changed files with 5 additions and 2 deletions
|
|
@ -21,13 +21,16 @@
|
||||||
version = "0.1.0";
|
version = "0.1.0";
|
||||||
src = ./.;
|
src = ./.;
|
||||||
|
|
||||||
vendorHash = "sha256-NbAa4QM/TI3BTuZs4glx9k3ZjSl2/2LQfKlQ7izR8Ho=";
|
vendorHash = ""; # auto-computed; update with actual hash after first build
|
||||||
# Run: nix build .#packages.x86_64-linux.default
|
# Run: nix build .#packages.x86_64-linux.default
|
||||||
# It will fail with the correct hash. Replace it here.
|
# It will fail with the correct hash. Replace vendorHash with it.
|
||||||
|
|
||||||
# Embed the templates and static files at build time.
|
# Embed the templates and static files at build time.
|
||||||
ldflags = [ "-s" "-w" ];
|
ldflags = [ "-s" "-w" ];
|
||||||
|
|
||||||
|
# Remove stale vendor directory when dependencies change.
|
||||||
|
preBuild = "rm -rf vendor";
|
||||||
|
|
||||||
nativeCheckInputs = with pkgs; [ ];
|
nativeCheckInputs = with pkgs; [ ];
|
||||||
|
|
||||||
# Tests require network; they run in CI instead.
|
# Tests require network; they run in CI instead.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue