commit | 9a97a2aae9e16ad9cd5fbed7c7ab8a10fe6f2673 | [log] [tgz] |
---|---|---|
author | Ian Lance Taylor <iant@golang.org> | Mon Jul 02 16:48:29 2018 -0700 |
committer | Brad Fitzpatrick <bradfitz@golang.org> | Tue Jul 03 15:12:48 2018 +0000 |
tree | bb34162f9dac34dfc6b48f315aaa8a5279f83576 | |
parent | f00bfb385ba7f9148a3f3af6c4882a3e53c3b536 [diff] |
cmd/go: add ForceLibrary to build hash When a command has a test that is not in package main, the main package is built as a library, with ForceLibrary set. It can of course also be built as an ordinary main package. If we don't record that fact in the hash, then both variants of the command will use the same hash, which causes a GODEBUG=gocacheverify=1 failure. It also seems unsafe although it's not clear to me whether it can cause an actual failure. Along with CL 121941, Fixes #25666 Change-Id: I115ad249012f30fbe45cd0c41da86adc295fe4b2 Reviewed-on: https://go-review.googlesource.com/121942 Run-TryBot: Ian Lance Taylor <iant@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Go is an open source programming language that makes it easy to build simple, reliable, and efficient software.
Gopher image by Renee French, licensed under Creative Commons 3.0 Attributions license.
Our canonical Git repository is located at https://go.googlesource.com/go. There is a mirror of the repository at https://github.com/golang/go.
Unless otherwise noted, the Go source files are distributed under the BSD-style license found in the LICENSE file.
Official binary distributions are available at https://golang.org/dl/.
After downloading a binary release, visit https://golang.org/doc/install or load doc/install.html in your web browser for installation instructions.
If a binary distribution is not available for your combination of operating system and architecture, visit https://golang.org/doc/install/source or load doc/install-source.html in your web browser for source installation instructions.
Go is the work of thousands of contributors. We appreciate your help!
To contribute, please read the contribution guidelines: https://golang.org/doc/contribute.html
Note that the Go project uses the issue tracker for bug reports and proposals only. See https://golang.org/wiki/Questions for a list of places to ask questions about the Go language.