proposal: promote GOCACHEPROG to be usable in official Go builds
danp opened this issue · 2 comments
danp commented
Opening this so it can at least be considered for 1.23.
With #59719 and #60419 we got support for GOCACHEPROG in 1.21+. However, it requires GOEXPERIMENT=gocacheprog be set at toolchain build time. This means official Go builds don't support GOCACHEPROG and that can make it difficult to use.
Based on issues such as dominikh/go-tools#1458 it seems at least Tailscale are having success with GOCACHEPROG.
Should it be supported by official Go builds, removing the need for toolchain-build-time GOEXPERIMENT=gocacheprog?
danp commented
If this feature is not ready for non-experimental use one option would be to still require GOEXPERIMENT=gocacheprog but move it from toolchain build time to toolchain invocation time.