Hacker News new | ask | show | jobs
by omegabravo 1865 days ago
update:

time GOARCH=amd GOOS=linux go build -a

6s for the M1 too!

1 comments

Do keep in mind that go heavily caches for "go build":

https://golang.org/cmd/go/#hdr-Build_and_test_caching

the "-a" directive in "go build -a" should cause a clean rebuild, which is what they were using