fix(flake): force remove vendor in preConfigure
The nix store may have stale vendor directories with incorrect permissions. Force chmod before removing to ensure clean build. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
5e125646a7
commit
3bc1fad6b5
1 changed files with 2 additions and 2 deletions
|
|
@ -28,8 +28,8 @@
|
||||||
# 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.
|
# Remove stale vendor directory before buildGoModule deletes it.
|
||||||
preBuild = "rm -rf vendor";
|
preConfigure = "find vendor -type f -exec chmod 666 {} \; 2>/dev/null || true; rm -rf vendor 2>/dev/null || find vendor -delete 2>/dev/null || true";
|
||||||
|
|
||||||
nativeCheckInputs = with pkgs; [ ];
|
nativeCheckInputs = with pkgs; [ ];
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue