-
Notifications
You must be signed in to change notification settings - Fork 17.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cmd/go: do not recompile packages outside current root #3149
Labels
Milestone
Comments
In this case github.com/dlintw/goconf is installed into $HOME/go instead of /opt/go. I don't understand why it require /opt/go write permission. As a linux distribution package maker, I think the installed package should NOT be changed by user. Just like gcc/java system library. But, if user want their 3rd party package, they can use GOPATH to include their local packages. So, for normal user, it is not necessary to have write permission to system library (I mean in my case /opt/go) The build script of go-hg is put on https://aur.archlinux.org/packages/go/go-hg/PKGBUILD |
This is a known bug. I can't find it on the issue tracker so renaming to match what we're going to fix. Labels changed: added priority-go1, removed priority-triage. Owner changed to builder@golang.org. Status changed to Accepted. |
This issue was closed by revision b03a5f6. Status changed to Fixed. |
$go list -json github.com/ajstarks/svgo { "Dir": "/home/dlin/go/src/github.com/ajstarks/svgo", "ImportPath": "github.com/ajstarks/svgo", "Name": "svg", "Doc": "Package svg provides an API for generating Scalable Vector Graphics (SVG)", "Target": "/home/dlin/go/pkg/linux_amd64/github.com/ajstarks/svgo.a", "Stale": true, "Root": "/home/dlin/go", "GoFiles": [ "svg.go" ], "Imports": [ "encoding/xml", "fmt", "io", "strings" ], "Deps": [ "bufio", "bytes", "encoding/xml", "errors", "fmt", "io", "math", "os", "reflect", "runtime", "strconv", "strings", "sync", "sync/atomic", "syscall", "time", "unicode", "unicode/utf8", "unsafe" ] } |
Comment 10 by salviati@freeconsole.org: I don't think this bug is fixed; I'm having the problem here (using ArchLinux). go install gives ... cp $WORK/runtime.a $GOROOT/pkg/linux_amd64/runtime.a open /opt/go/pkg/linux_amd64/runtime.a: permission denied for a package under $GOPATH/src. (go version weekly.2012-03-04 +2bc5447d7858) |
I don't think this bug is fixed; I'm having the problem here (using ArchLinux). go install gives ... cp $WORK/runtime.a $GOROOT/pkg/linux_amd64/runtime.a open /opt/go/pkg/linux_amd64/runtime.a: permission denied for a package under $GOPATH/src. (go version weekly.2012-03-04 +2bc5447d7858) |
Can you say what directory you are in and what 'go list -json' prints in that directory? What package does the go command want to install? Can you also try 'go list -json <that-package>'? If you are inside $GOROOT then go install should install the standard packages. If you are outside $GOROOT it should not, unless they are not present at all. Russ |
@breeze773: try building from source at tip: http://golang.org/doc/install/source |
This issue was closed.
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
The text was updated successfully, but these errors were encountered: