Fix goModules derivation: disable fixup to avoid store path references
The Go toolchain auto-download (triggered by `toolchain go1.25.8` in go.mod) puts scripts with shebangs into the module cache. Nix fixup phase patches these to reference /nix/store paths, violating the fixed-output derivation contract. dontFixup = true leaves the cache as-is, which is fine since these files are only consumed as build inputs by the pyroscope derivation. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
01317634ad
commit
268645f561
1 changed files with 4 additions and 0 deletions
|
|
@ -34,6 +34,10 @@ let
|
|||
cp -r $TMPDIR/go/pkg/mod $out
|
||||
'';
|
||||
|
||||
# Disable fixup: patchelf and patchShebangs modify downloaded Go toolchain
|
||||
# binaries, which makes the fixed-output derivation reference store paths
|
||||
dontFixup = true;
|
||||
|
||||
outputHashMode = "recursive";
|
||||
outputHash = pkgs.lib.fakeHash;
|
||||
outputHashAlgo = "sha256";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue