From 2974d4b4b6330bde81382a0d23eed80fd315f762 Mon Sep 17 00:00:00 2001 From: Luke Granger-Brown Date: Wed, 24 Feb 2021 20:07:26 +0000 Subject: 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 --- nix/buildGo/external/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'nix') 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' \ -- cgit 1.4.1