about summary refs log tree commit diff
path: root/nix
diff options
context:
space:
mode:
authorLuke Granger-Brown <git@lukegb.com>2021-02-24T20·07+0000
committerlukegb <lukegb@tvl.fyi>2021-02-24T20·44+0000
commit2974d4b4b6330bde81382a0d23eed80fd315f762 (patch)
treee8b4435243490c13c5f7a16e9aff78a1ea3152b8 /nix
parent949e55fde99398cc234196f9e69a3239c6c306a6 (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 'nix')
-rw-r--r--nix/buildGo/external/default.nix2
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' \