-
Notifications
You must be signed in to change notification settings - Fork 17.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cmd: update vendored golang.org/x/mod
Pull in CL 500335. It teaches modfile.IsDirectoryPath to recognize all relative paths that begin with a "." or ".." path element as a valid directory path (rather than a module path). This allows removing the path == "." check that CL 389298 added to modload.ToDirectoryPath. go get golang.org/x/mod@6e58e47c # CL 500335 go mod tidy go mod vendor Updates #51448. Fixes #60572. Change-Id: Ide99c728c8dac8fd238e13f6d6a0c3917d7aea2d Cq-Include-Trybots: luci.golang.try:gotip-linux-amd64-longtest Reviewed-on: https://go-review.googlesource.com/c/go/+/500355 Reviewed-by: Dmitri Shuralyov <[email protected]> LUCI-TryBot-Result: Go LUCI <[email protected]> Auto-Submit: Dmitri Shuralyov <[email protected]> Reviewed-by: Bryan Mills <[email protected]>
- Loading branch information
Showing
6 changed files
with
32 additions
and
16 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
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 |
---|---|---|
@@ -1,17 +1,33 @@ | ||
# Regression test for https://go.dev/issue/51448. | ||
# 'go work init . foo/bar' should produce a go.work file | ||
# with the same paths as 'go work init; go work use -r .'. | ||
# 'go work init . .. foo/bar' should produce a go.work file | ||
# with the same paths as 'go work init; go work use -r ..', | ||
# and it should have 'use .' rather than 'use ./.' inside. | ||
|
||
go work init . foo/bar | ||
cd dir | ||
|
||
go work init . .. foo/bar | ||
mv go.work go.work.init | ||
|
||
go work init | ||
go work use -r . | ||
go work use -r .. | ||
cmp go.work go.work.init | ||
|
||
cmpenv go.work $WORK/go.work.want | ||
|
||
-- go.mod -- | ||
module example | ||
go 1.18 | ||
-- foo/bar/go.mod -- | ||
-- dir/go.mod -- | ||
module example | ||
go 1.18 | ||
-- dir/foo/bar/go.mod -- | ||
module example | ||
go 1.18 | ||
-- $WORK/go.work.want -- | ||
go $goversion | ||
|
||
use ( | ||
. | ||
.. | ||
./foo/bar | ||
) |
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