Description
Please answer these questions before submitting your issue. Thanks!
What version of Go are you using (go version
)?
go version go1.10 darwin/amd64
Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (go env
)?
Irrevelent
What did you do?
I have a project that relies on https://github.com/flier/gohs (golang wrapper around an Intel developed C library called hyperscan). My usage requires that I build the tool that relies on gohs
inside of a local directory not related to my GOPATH
. So, to make that work I have a script that does something like:
gopath=$(cd "$installdir" && pwd)
cd "$builddir"
GOPATH=$gopath go build
This worked fine in the past (<= 1.9.3), but now I'm getting:
go build github.com/github/myproject/vendor/github.com/flier/gohs/hyperscan: invalid pkg-config package name: --static
If I do a go get github.com/flier/gohs
and then do a go build github.com/flier/gohs/hyperscan
it builds fine. But, if I try to do the build in a "non-standard" directory I get the whitelist error. I saw that https://go-review.googlesource.com/#/c/94896/ addresses some issue related to --static
and was used to close #23875. It isn't clear to me if that change would affect this use case or not. Let me know if I can provide any extra information to help produce a test case.
What did you expect to see?
The package successfully build
What did you see instead?
The error invalid pkg-config package name: --static