]> Cypherpunks repositories - gostls13.git/commit
cmd/dist: do not use user build cache in versioned trees
authorRuss Cox <rsc@golang.org>
Mon, 12 Jun 2023 20:38:24 +0000 (16:38 -0400)
committerGopher Robot <gobot@golang.org>
Mon, 12 Jun 2023 20:59:04 +0000 (20:59 +0000)
commitf7e11723e527c1a12e76180e29d52e1fcefce57b
tree2e95b2b877d2ea046fe011894ce0a586fc775ad8
parentc643b2938143ff59d5e854489880e12b39cbfb86
cmd/dist: do not use user build cache in versioned trees

There is no guarantee that the user build cache will have
correct data if we are using a versioned build (with a VERSION file),
because that overrides the use of tool build IDs for staleness.
An earlier build might have run with a buggy compiler, and we don't
want those files lying around.

Change-Id: I831956911162ccbd0b4d943c305b3537918fe119
Reviewed-on: https://go-review.googlesource.com/c/go/+/502699
Auto-Submit: Russ Cox <rsc@golang.org>
Reviewed-by: Bryan Mills <bcmills@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Russ Cox <rsc@golang.org>
src/cmd/dist/build.go