aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/stack.go
diff options
context:
space:
mode:
authorBryan C. Mills <bcmills@google.com>2019-10-23 16:10:55 -0400
committerBryan C. Mills <bcmills@google.com>2019-10-24 13:21:45 +0000
commitdc77dc2b9bd0f232631f683638bd7a23fab3598c (patch)
tree38481992f6b61922815a8e87368628bd79da4c21 /src/runtime/stack.go
parenta42a396846453e44ff9abadc1430a8c0c6a11e25 (diff)
downloadgo-dc77dc2b9bd0f232631f683638bd7a23fab3598c.tar.xz
cmd/go/internal/list: ensure that cfg.BuildMod is initialized before reading it in 'go list -m'
The default value of cfg.BuildMod depends on the 'go' version in the go.mod file. The go.mod file is read and parsed, and its settings are applied, in modload.InitMod. As it turns out, modload.Enabled does not invoke InitMod, so cfg.BuildMod is not necessarily set even if modload.Enabled returns true. Updates #33848 Change-Id: I13a4dd80730528e6f1a5acc492fcfe07cb59d94e Reviewed-on: https://go-review.googlesource.com/c/go/+/202917 Run-TryBot: Bryan C. Mills <bcmills@google.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Jay Conrod <jayconrod@google.com>
Diffstat (limited to 'src/runtime/stack.go')
0 files changed, 0 insertions, 0 deletions