-
Notifications
You must be signed in to change notification settings - Fork 17.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cmd/go: update x/mod to fix "//indirect" comment editing
Fixes #45932 Change-Id: I043aecb6224348faf54c1d41fdbc00aa566089c2 Reviewed-on: https://go-review.googlesource.com/c/go/+/316751 Trust: Bryan C. Mills <bcmills@google.com> Run-TryBot: Bryan C. Mills <bcmills@google.com> Reviewed-by: Jay Conrod <jayconrod@google.com> TryBot-Result: Go Bot <gobot@golang.org>
- Loading branch information
Bryan C. Mills
committed
May 4, 2021
1 parent
f62739b
commit 10a082a
Showing
6 changed files
with
39 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# https://golang.org/issue/45932: "indirect" comments missing spaces | ||
# should not be corrupted when the comment is removed. | ||
|
||
go mod tidy | ||
cmp go.mod go.mod.direct | ||
|
||
-- go.mod -- | ||
module example.net/m | ||
|
||
go 1.16 | ||
|
||
require example.net/x v0.1.0 //indirect | ||
|
||
replace example.net/x v0.1.0 => ./x | ||
-- go.mod.direct -- | ||
module example.net/m | ||
|
||
go 1.16 | ||
|
||
require example.net/x v0.1.0 | ||
|
||
replace example.net/x v0.1.0 => ./x | ||
-- m.go -- | ||
package m | ||
import _ "example.net/x" | ||
|
||
-- x/go.mod -- | ||
module example.net/x | ||
|
||
go 1.16 | ||
-- x/x.go -- | ||
package x |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters