]> Cypherpunks repositories - gostls13.git/commit
cmd/go/internal/generate: call modload.InitWorkFile
authorMichael Matloob <matloob@golang.org>
Mon, 29 Jan 2024 16:14:05 +0000 (11:14 -0500)
committerMichael Matloob <matloob@golang.org>
Mon, 29 Jan 2024 19:39:24 +0000 (19:39 +0000)
commitb91bad78199aaf8baeb66cb8a30f51b89b8f90ee
tree74be885f0f614b4b03e06f3c705d7e52709f95dc
parenta64d5be9125c9508d5cf4ff1a869ec2316097f92
cmd/go/internal/generate: call modload.InitWorkFile

This is necessary for go generate to enter workspace mode for
recognizing package paths in the workspace.

Fixes #56098

Change-Id: I25f68de24f4189259353f63194823516e9d3d505
Cq-Include-Trybots: luci.golang.try:gotip-linux-amd64-longtest,gotip-windows-amd64-longtest
Reviewed-on: https://go-review.googlesource.com/c/go/+/559195
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Bryan Mills <bcmills@google.com>
src/cmd/go/internal/generate/generate.go
src/cmd/go/testdata/script/generate_workspace.txt [new file with mode: 0644]