Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
G
golang
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
go
golang
Commits
2c6a2a97
Commit
2c6a2a97
authored
May 30, 2011
by
Russ Cox
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
goinstall: skip standard packages
R=adg, n13m3y3r CC=golang-dev
https://golang.org/cl/4526084
parent
87dbec54
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
main.go
src/cmd/goinstall/main.go
+5
-3
No files found.
src/cmd/goinstall/main.go
View file @
2c6a2a97
...
...
@@ -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
())
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment