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

dist: Show warning building out-of-date packages in 'go test -race' #5459

Closed
dlintw opened this issue May 14, 2013 · 3 comments
Closed

dist: Show warning building out-of-date packages in 'go test -race' #5459

dlintw opened this issue May 14, 2013 · 3 comments
Milestone

Comments

@dlintw
Copy link

dlintw commented May 14, 2013

What steps will reproduce the problem?
If possible, include a link to a program on play.golang.org.
1. build by this PKGBUILD script, (eg. build multiple GOARCH GOOS)
  https://aur.archlinux.org/packages/go/go-crosstool/PKGBUILD
2. go test works.
3. go test -race occurs

I'm try to build Go package for Arch Linux, but wonder what's the correct steps to build
'test -race' support.

In the PKGBUILD script, I just call "make.bash --noclean"
But, there is no usr/lib/go/pkg/linux_amd64_race/ directory.

What is the expected output?


What do you see instead?

$ go test -race
warning: building out-of-date packages:
    runtime
    runtime/cgo
        ... omit ..
    regexp/syntax
    regexp
installing these packages with 'go test -race -i' will speed future tests.

$ GOPATH=/home/USER/go
$ go test -race -i

go install runtime: mkdir /usr/lib/go/pkg/linux_amd64_race/: permission denied

Which compiler are you using (5g, 6g, 8g, gccgo)?
x86_64

Which operating system are you using?
Arch Linux x86_64

Which version are you using?  (run 'go version')
go version go1.1 linux/amd64

Please provide any additional information below.
@rsc
Copy link
Contributor

rsc commented Jul 30, 2013

Comment 1:

Labels changed: added priority-later, go1.2maybe, removed priority-triage.

Status changed to Accepted.

@robpike
Copy link
Contributor

robpike commented Aug 21, 2013

Comment 2:

go build -race std
should do it.
Not really an issue, just a help request.

Status changed to Invalid.

@robpike
Copy link
Contributor

robpike commented Aug 21, 2013

Comment 3:

You probably want
go install -race std
but you get the idea.

This issue was closed.
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

4 participants