pkgs := []*Package{p}
wildcardOkay := len(*stk) == 0
+ isWildcard := false
// Download if the package is missing, or update if we're using -u.
if p.Dir == "" || *getU {
} else {
args = matchPackages(arg)
}
+ isWildcard = true
}
// Clear all relevant package cache entries before
}
}
+ if isWildcard {
+ // Report both the real package and the
+ // wildcard in any error message.
+ stk.push(p.ImportPath)
+ }
+
// Process dependencies, now that we know what they are.
for _, dep := range p.deps {
// Don't get test dependencies recursively.
download(path, stk, false)
}
}
+
+ if isWildcard {
+ stk.pop()
+ }
}
}