Skip to content
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: cannot pre-install testing dependencies with the -race flag #19197

Closed
amenzhinsky opened this issue Feb 20, 2017 · 1 comment
Closed

Comments

@amenzhinsky
Copy link
Contributor

amenzhinsky commented Feb 20, 2017

What version of Go are you using (go version)?

go1.8

What operating system and processor architecture are you using (go env)?

linux/amd64

What did you do?

Go is installed system-wide, so I install all std packages:

$ sudo install -a -race std

Then I try to pre-install my testing dependencies for empty library with just one file (the same happens to any package):

package foo
func Foo() {}

And it fails since current user has no privileges to copy files to /usr/lib/go

$ go test -a -race -i .
go install errors: open /usr/lib/go/pkg/linux_amd64_race/errors.a: permission denied
go install internal/race: open /usr/lib/go/pkg/linux_amd64_race/internal/race.a: permission denied
go install unicode/utf8: open /usr/lib/go/pkg/linux_amd64_race/unicode/utf8.a: permission denied
go install unicode: open /usr/lib/go/pkg/linux_amd64_race/unicode.a: permission denied
go install math: open /usr/lib/go/pkg/linux_amd64_race/math.a: permission denied

What did you expect to see?

All std packages should be cached and reused since the're not updated.

@ALTree
Copy link
Member

ALTree commented Feb 20, 2017

Dup of #19133

@ALTree ALTree closed this as completed Feb 20, 2017
@golang golang locked and limited conversation to collaborators Feb 20, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants