Skip to content

cmd/go: install -a fails if GOROOT is not writeable #5065

Closed
@4a6f656c

Description

@4a6f656c
Currently 'go install -a' fails when run for packages under GOPATH, if the GOROOT is not
writeable:

$ sudo tar -C /usr/local -xzf go1.0.3.linux-amd64.tar.gz
$ echo $GOPATH
/home/jsing/src/mygo
$ go install -a example
go install runtime: open /usr/local/go/pkg/linux_amd64/runtime.a: permission denied

Obviously '-a' means all, however it would be useful if we could force a rebuild for all
of the dependencies under the GOPATH only (or skip dependencies in GOROOT).

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions