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

WSL + ubuntu 18.04 bulid errors #9

Open
pivenmedia opened this issue Nov 4, 2019 · 2 comments
Open

WSL + ubuntu 18.04 bulid errors #9

pivenmedia opened this issue Nov 4, 2019 · 2 comments

Comments

@pivenmedia
Copy link

Hi, when i am trying to build npiperelay.exe under WSL+Ubuntu 18.04 i get error below:
➜ ~ go get -d github.com/jstarks/npiperelay
go/src/github.com/jstarks/npiperelay/npiperelay.go:12:2: build constraints exclude all Go files in /home/pvm/go/src/golang.org/x/sys/windows

Please advise if there any workaround.

@janorn
Copy link

janorn commented Nov 29, 2019

I did this to get it to work.

env GOOS=windows GOARCH=amd64 go get -d github.com/jstarks/npiperelay
env GOOS=windows GOARCH=amd64 go build -o /mnt/c/Users/<myuser>/bin/npiperelay.exe github.com/jstarks/npiperelay

@jasonshortphd
Copy link

I ended up git sync the entire repo and then ran the build command from that directory to get it to work. The go get -d didn't work for me for some reason.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants