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:
Luke Granger-Brown 2021-02-24 20:07:26 +00:00 committed by lukegb
parent 949e55fde9
commit 2974d4b4b6

View file

@ -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' \