Skip to content

Commit

Permalink
Makefile: choose newest version of Go
Browse files Browse the repository at this point in the history
Now that these are sorted properly, we can rely on the top one being the
newest. Before, we assumed the last one was the newest, which was only
true during betas and rcs, which required us to swap back and forth
between the first one and the last one. But even then, the last one
wouldn't always be the latest beta! So sometimes we had to change it to
the second to last one. And on and on with madness. In other words,
before the list was basically unsorted. But now that it's sorted, we can
just use the top one always, which is what we want.

Signed-off-by: Jason A. Donenfeld <[email protected]>
  • Loading branch information
zx2c4 committed Jan 18, 2022
1 parent ffcbb15 commit 29cdb33
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ remaster: .deps/go/prepared
rm -f go.sum go.mod
cp go.mod.master go.mod
go get -d
sed -i $(shell curl -L 'https://go.dev/dl/?mode=json&include=all' | jq -r '(".windows-amd64.zip",".linux-amd64.tar.gz") as $$suffix | .[-1].files[] | select(.filename|endswith($$suffix)) | ("-e", "s/go[0-9][^ ]*\\\($$suffix)\\([ ,]\\)[a-f0-9]\\+/\(.filename)\\1\(.sha256)/") | @sh') Makefile build.bat
sed -i $(shell curl -L 'https://go.dev/dl/?mode=json&include=all' | jq -r '(".windows-amd64.zip",".linux-amd64.tar.gz") as $$suffix | .[0].files[] | select(.filename|endswith($$suffix)) | ("-e", "s/go[0-9][^ ]*\\\($$suffix)\\([ ,]\\)[a-f0-9]\\+/\(.filename)\\1\(.sha256)/") | @sh') Makefile build.bat

fmt: export GOARCH := amd64
fmt: .deps/go/prepared
Expand Down

0 comments on commit 29cdb33

Please sign in to comment.