]> Cypherpunks.ru repositories - gostls13.git/commit
cmd/go: handle '@' in local path when running 'go mod edit -replace'
authorQuan Tong <quantonganh@gmail.com>
Wed, 1 Nov 2023 11:08:23 +0000 (18:08 +0700)
committerGopher Robot <gobot@golang.org>
Mon, 6 Nov 2023 18:00:45 +0000 (18:00 +0000)
commitd5b5ab929bf49403de3e2b61e9e771e775893d01
tree5934e87c5effad4307c224dcc580fcab230670fa
parent4cd201b14b6216e72ffa175747c20d1191e5eb57
cmd/go: handle '@' in local path when running 'go mod edit -replace'

The existing implementation considers everything after '@' as a version.

Fixes #61500

Change-Id: I72c32529c2726c2b59c089f5ffd6a2e361ef2c65
Reviewed-on: https://go-review.googlesource.com/c/go/+/538916
Auto-Submit: Bryan Mills <bcmills@google.com>
Reviewed-by: Bryan Mills <bcmills@google.com>
Reviewed-by: Heschi Kreinick <heschi@google.com>
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