build-tools icon indicating copy to clipboard operation
build-tools copied to clipboard

Stop pre-building Go std library

Open bboreham opened this issue 3 years ago • 0 comments

These lines: https://github.com/weaveworks/build-tools/blob/dedde7fa74541639a8223f15260ee71f1a13ee6a/build/golang/Dockerfile#L25-L27

are not necessary since Go added a per-target build cache, and probably don't achieve anything since we typically bind-mount another directory for the build cache when compilations are run: https://github.com/weaveworks/prom-aggregation-gateway/blob/c4415bbe1411d77eb4132f3df51c87cf7fcca840/Makefile#L60

bboreham avatar May 04 '21 11:05 bboreham