Re: [go-nuts] Does building with an older golang use package sources from that older version?

2024-01-10 Thread 'Axel Wagner' via golang-nuts
You don't even need to run `go clean`. Go will automatically detect whether stuff needs to be rebuilt, as the Go version used to build a package is part of a hash, that is used as a key for the build cache. And yes, it will use the standard library packages of the Go version that is installed (the

[go-nuts] Does building with an older golang use package sources from that older version?

2024-01-10 Thread Andrew Athan
Say I install golang 1.20.12 and go clean -cache and go clean -modcache. Then I build. Will that executable be using crypto/tls and other packages "as they were in 1.20.12"? Or is golang fetching the newest available compatible sources, and therefore I may be spinning my wheels trying to see