Commit 2c6a2a97 authored by Russ Cox's avatar Russ Cox

goinstall: skip standard packages

R=adg, n13m3y3r
CC=golang-dev
https://golang.org/cl/4526084
parent 87dbec54
...@@ -131,6 +131,11 @@ func logPackage(pkg string) { ...@@ -131,6 +131,11 @@ func logPackage(pkg string) {
// install installs the package named by path, which is needed by parent. // install installs the package named by path, which is needed by parent.
func install(pkg, parent string) { func install(pkg, parent string) {
if isStandardPath(pkg) {
visit[pkg] = done
return
}
// Make sure we're not already trying to install pkg. // Make sure we're not already trying to install pkg.
switch visit[pkg] { switch visit[pkg] {
case done: case done:
...@@ -160,9 +165,6 @@ func install(pkg, parent string) { ...@@ -160,9 +165,6 @@ func install(pkg, parent string) {
if isLocalPath(pkg) { if isLocalPath(pkg) {
dir = pkg dir = pkg
local = true local = true
} else if isStandardPath(pkg) {
dir = filepath.Join(root, filepath.FromSlash(pkg))
local = true
} else { } else {
proot = findPkgroot(pkg) proot = findPkgroot(pkg)
err := download(pkg, proot.srcDir()) err := download(pkg, proot.srcDir())
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment