We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9f90f31 commit b6ead9fCopy full SHA for b6ead9f
src/cmd/go/pkg.go
@@ -355,7 +355,7 @@ func isDir(path string) bool {
355
// it searched along the way, to help prepare a useful error message should path turn
356
// out not to exist.
357
func vendoredImportPath(parent *Package, path string) (found string, searched []string) {
358
- if parent == nil || !go15VendorExperiment {
+ if parent == nil || parent.Root == "" || !go15VendorExperiment {
359
return path, nil
360
}
361
dir := filepath.Clean(parent.Dir)
0 commit comments