]> Cypherpunks repositories - gostls13.git/commit
cmd/mod/edit: disallow relative tool paths
authorConrad Irwin <conrad.irwin@gmail.com>
Fri, 20 Sep 2024 06:12:48 +0000 (00:12 -0600)
committerMichael Matloob <matloob@golang.org>
Fri, 20 Sep 2024 20:19:15 +0000 (20:19 +0000)
commit097b7162adeab8aad0095303aff8a045bbbfa6e0
tree777579f2bea136539e7bfd4cae92d38b8d8ab5fe
parent402dc98759b4708beebcd0729f308bb0c03d3ed6
cmd/mod/edit: disallow relative tool paths

Allowing relative paths in `go.mod` introduced an inconsistency as we do
not allow relative package paths anywhere else.

For golang/go#48429

Change-Id: I5ef88aec4fe35f7e94a0cf6288e94099f3ca7a0e
Reviewed-on: https://go-review.googlesource.com/c/go/+/614555
Reviewed-by: Sam Thanawalla <samthanawalla@google.com>
Reviewed-by: Michael Matloob <matloob@golang.org>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
src/cmd/go/internal/modcmd/edit.go
src/cmd/go/testdata/script/mod_edit.txt