-
-
Notifications
You must be signed in to change notification settings - Fork 31
build fails on darwin #34
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
Comments
Sorry, I don't have macOS. So I can't fix this issue. |
On an M1 MacBook Pro on macOS 12.3.1 (21E258), I can't replicate this. Seems to build successfully. |
google/go-cloud#3114 (comment) describes how to repro from a user. I think you can do it on any platform by setting GOOS=darwin GOARCH=amd64 |
Oh sorry, I didn't notice this happened building things that used this library, I was just trying to build it itself. I can replicate, I'll try to take a look myself. |
Looks like this happens due to golang/go#24068. I managed to make this work by enabling the
Could you test this @vangent? Doesn't seem like anything |
I could but I don't really want to use CGO... |
CGo is used extensively in this package to interface with OS APIs to fetch the relevant configs, so I'm not sure what alternative is left if you're trying to use it. If you want to use parts of the lib that don't rely on C calls, you can fork it and just use the parts you need! |
I understand, I'm getting this as a dependency of a dependency actually, so its not that simple... on a side note, probably worth mentioning that it uses cgo on the readme/godocs... |
With big bold letters! |
Not a good option for projects using libraries that are using ieproxy.
|
Note that |
So, would be solved this problem with adding empty implementations for non-cgo? |
I think it might, yes. Azure could also not use the proxy by default (as I suggested here), but having a no-op impl for non-cgo seems even better... |
created #42 to address it |
Got into this when building with 0.0.8 on mac
|
oh, my bad, fix on #43, now with tests! |
Describe the bug
Building things that use this library seems to yield an error on darwin, both amd64 and arm64.
Example output:
❯ GOOS=darwin GOARCH=arm64 go build .
github.com/mattn/go-ieproxy
../../Go/pkg/mod/github.com/mattn/[email protected]/ieproxy.go:36:9: undefined: getConf
../../Go/pkg/mod/github.com/mattn/[email protected]/ieproxy.go:41:9: undefined: reloadConf
../../Go/pkg/mod/github.com/mattn/[email protected]/ieproxy.go:48:2: undefined: overrideEnvWithStaticProxy
../../Go/pkg/mod/github.com/mattn/[email protected]/ieproxy.go:53:13: psc.findProxyForURL undefined (type *Proxy
The text was updated successfully, but these errors were encountered: