diff options
author | Luke Granger-Brown <git@lukegb.com> | 2021-02-24T20·07+0000 |
---|---|---|
committer | lukegb <lukegb@tvl.fyi> | 2021-02-24T20·44+0000 |
commit | 2974d4b4b6330bde81382a0d23eed80fd315f762 (patch) | |
tree | e8b4435243490c13c5f7a16e9aff78a1ea3152b8 /nix/buildGo | |
parent | 949e55fde99398cc234196f9e69a3239c6c306a6 (diff) |
fix(buildGo): Fix stdlib list under Go 1.16. r/2233
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>
Diffstat (limited to '')
-rw-r--r-- | nix/buildGo/external/default.nix | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nix/buildGo/external/default.nix b/nix/buildGo/external/default.nix index 6f31fbe5caeb..de29df416456 100644 --- a/nix/buildGo/external/default.nix +++ b/nix/buildGo/external/default.nix @@ -25,7 +25,7 @@ let stdlibPackages = runCommand "stdlib-pkgs.json" {} '' export HOME=$PWD export GOPATH=/dev/null - ${go}/bin/go list all | \ + ${go}/bin/go list std | \ ${ripgrep}/bin/rg -v 'vendor' | \ ${jq}/bin/jq -R '.' | \ ${jq}/bin/jq -c -s 'map({key: ., value: true}) | from_entries' \ |