]> Cypherpunks.ru repositories - gostls13.git/blobdiff - misc/cgo/testshared/shared_test.go
cmd/go: add check for unknown godebug setting
[gostls13.git] / misc / cgo / testshared / shared_test.go
index e300e20e2008053b0cfc04aeff329e35252d9696..3a8fda05ed78e60c38a7fe76fe253c425a33c647 100644 (file)
@@ -219,7 +219,7 @@ func cloneGOROOTDeps(goroot string) error {
        for _, pkg := range pkgs {
                parentFound := false
                for _, prev := range pkgRoots {
-                       if strings.HasPrefix(pkg, prev) {
+                       if pkg == prev || strings.HasPrefix(pkg, prev+"/") {
                                // We will copy in the source for pkg when we copy in prev.
                                parentFound = true
                                break