]> Cypherpunks repositories - gostls13.git/commit
cmd/go: use path.Dir instead of filepath.Dir for package paths in 'go mod vendor'
authorYasuhiro Matsumoto <mattn.jp@gmail.com>
Tue, 22 Jun 2021 16:02:33 +0000 (01:02 +0900)
committerBryan C. Mills <bcmills@google.com>
Thu, 1 Jul 2021 17:10:36 +0000 (17:10 +0000)
commit835d86a17ebf32a3cb081f66119c74363dbd8825
treefb49b5322dc5c4cb3bde19ec1c66feb78e58c680
parenteb437ba92cbb08a86ae064cbd7376c4a8e80485b
cmd/go: use path.Dir instead of filepath.Dir for package paths in 'go mod vendor'

copyMetadata walk-up to parent directory until the pkg become modPath.
But pkg should be slash-separated paths. It have to use path.Dir instead of
filepath.Dir.

Fixes #46867

Change-Id: I44cf1429fe52379a7415b94cc30ae3275cc430e8
Reviewed-on: https://go-review.googlesource.com/c/go/+/330149
Reviewed-by: Bryan C. Mills <bcmills@google.com>
Trust: Bryan C. Mills <bcmills@google.com>
Trust: Alexander Rakoczy <alex@golang.org>
Trust: Carlos Amedee <carlos@golang.org>
Run-TryBot: Bryan C. Mills <bcmills@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
src/cmd/go/internal/modcmd/vendor.go