fix(buildGo): Fix stdlib list under Go 1.16.
Go 1.16 makes "go list all" not work. "go list std" is what we should be using instead anyway. Change-Id: I3f867fde477030d2358085b3d64b5856fb9c421b Reviewed-on: https://cl.tvl.fyi/c/depot/+/2551 Tested-by: BuildkiteCI Reviewed-by: tazjin <mail@tazj.in>
This commit is contained in:
parent
949e55fde9
commit
2974d4b4b6
1 changed files with 1 additions and 1 deletions
2
nix/buildGo/external/default.nix
vendored
2
nix/buildGo/external/default.nix
vendored
|
@ -25,7 +25,7 @@ let
|
||||||
stdlibPackages = runCommand "stdlib-pkgs.json" {} ''
|
stdlibPackages = runCommand "stdlib-pkgs.json" {} ''
|
||||||
export HOME=$PWD
|
export HOME=$PWD
|
||||||
export GOPATH=/dev/null
|
export GOPATH=/dev/null
|
||||||
${go}/bin/go list all | \
|
${go}/bin/go list std | \
|
||||||
${ripgrep}/bin/rg -v 'vendor' | \
|
${ripgrep}/bin/rg -v 'vendor' | \
|
||||||
${jq}/bin/jq -R '.' | \
|
${jq}/bin/jq -R '.' | \
|
||||||
${jq}/bin/jq -c -s 'map({key: ., value: true}) | from_entries' \
|
${jq}/bin/jq -c -s 'map({key: ., value: true}) | from_entries' \
|
||||||
|
|
Loading…
Reference in a new issue