Skip to content

Commit a708d86

Browse files
committed
fix(go): Work around golang/go#16333
1 parent 85c1788 commit a708d86

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

builders/golang.go

+1-4
Original file line numberDiff line numberDiff line change
@@ -651,10 +651,7 @@ func (builder *GoBuilder) Analyze(m module.Module, allowUnresolved bool) ([]modu
651651

652652
// Work around awful Go compiler hack: see https://github.com/golang/go/issues/16333
653653
if strings.HasPrefix(dep.ImportPath, "vendor/golang_org") {
654-
if strings.Index(dep.ImportPath, "internal") != -1 {
655-
continue
656-
}
657-
importPath = "golang.org" + strings.TrimPrefix(dep.ImportPath, "vendor/golang_org")
654+
continue
658655
}
659656

660657
goLogger.Debugf("Resolving import: %s", importPath)

0 commit comments

Comments
 (0)