Skip to content

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

@dlintw

Description

@dlintw
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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions