aboutsummaryrefslogtreecommitdiff
path: root/src/testing/testing.go
diff options
context:
space:
mode:
authorMichael Matloob <matloob@golang.org>2021-09-03 13:33:37 -0400
committerMichael Matloob <matloob@golang.org>2021-09-08 18:47:32 +0000
commit37c9552e065fb4331d8cba84c12392806f1ecbbe (patch)
tree9c97ca10b43a50eeecf33866389818263c72c1ac /src/testing/testing.go
parentc8d4fe2adc556317f75c2ebad195568ad5ff9644 (diff)
downloadgo-37c9552e065fb4331d8cba84c12392806f1ecbbe.tar.xz
cmd/go: improve the creation and editing of go.work files
This change changes go.work files so that directory paths are clearly distinguished from module paths by either being rooted absolute paths or starting with '.' or '..' path elements if they are relative paths. go mod initwork now checks that the go.work file doesn't already exist before creating it, and gomod initwork and gomod editwork look up the module path corresponding to a directory and write it to the directory directive's comment. For #45713 Change-Id: I6983779059b7de6fc83d359280ceffb263f6b641 Reviewed-on: https://go-review.googlesource.com/c/go/+/347591 Trust: Michael Matloob <matloob@golang.org> Run-TryBot: Michael Matloob <matloob@golang.org> TryBot-Result: Go Bot <gobot@golang.org> Reviewed-by: Jay Conrod <jayconrod@google.com>
Diffstat (limited to 'src/testing/testing.go')
0 files changed, 0 insertions, 0 deletions