mirror of
https://github.com/golang/go
synced 2024-11-21 20:44:39 -07:00
goinstall: skip standard packages
R=adg, n13m3y3r CC=golang-dev https://golang.org/cl/4526084
This commit is contained in:
parent
87dbec54bb
commit
2c6a2a9773
@ -131,6 +131,11 @@ func logPackage(pkg string) {
|
||||
|
||||
// install installs the package named by path, which is needed by parent.
|
||||
func install(pkg, parent string) {
|
||||
if isStandardPath(pkg) {
|
||||
visit[pkg] = done
|
||||
return
|
||||
}
|
||||
|
||||
// Make sure we're not already trying to install pkg.
|
||||
switch visit[pkg] {
|
||||
case done:
|
||||
@ -160,9 +165,6 @@ func install(pkg, parent string) {
|
||||
if isLocalPath(pkg) {
|
||||
dir = pkg
|
||||
local = true
|
||||
} else if isStandardPath(pkg) {
|
||||
dir = filepath.Join(root, filepath.FromSlash(pkg))
|
||||
local = true
|
||||
} else {
|
||||
proot = findPkgroot(pkg)
|
||||
err := download(pkg, proot.srcDir())
|
||||
|
Loading…
Reference in New Issue
Block a user