mirror of
https://github.com/netbirdio/gvisor.git
synced 2026-05-22 17:12:49 -07:00
Fix expected import path for Go cmd/vendor packages.
PiperOrigin-RevId: 557273882
This commit is contained in:
@@ -742,6 +742,10 @@ func SplitPackages(srcs []string, srcRootPrefix string) map[string][]string {
|
||||
continue
|
||||
}
|
||||
|
||||
// In Go's sources, vendored packages under cmd/vendor are imported via
|
||||
// paths not containing cmd/vendor.
|
||||
pkg = strings.TrimPrefix(pkg, "cmd/vendor/")
|
||||
|
||||
// Place the special runtime package (functions emitted by the
|
||||
// compiler itself) into the runtime packages.
|
||||
if strings.Contains(filename, "cmd/compile/internal/typecheck/_builtin/runtime.go") {
|
||||
|
||||
Reference in New Issue
Block a user