WireGuard / wgctrl-go

Package wgctrl enables control of WireGuard interfaces on multiple platforms.
https://godoc.org/golang.zx2c4.com/wireguard/wgctrl
MIT License
727 stars 85 forks source link

github.com/WireGuard/wgctrl-go expects import "golang.zx2c4.com/wireguard/wgctrl" #66

Closed metalcated closed 4 years ago

metalcated commented 4 years ago

github.com/WireGuard/wgctrl-go expects import "golang.zx2c4.com/wireguard/wgctrl"

Seem to continue to get this error while trying to "go build" on another project. I made sure that library is installed, not sure what the issue is or if this is a bug or not.

$GOPATH is defined and working because other libraries are being found.

Any help would be great.

Thanks

metalcated commented 4 years ago

I have removed and reinstalled all go binaries. Same issue.

mdlayher commented 4 years ago

The project you're trying to build must import this library as golang.zx2c4.com/wireguard/wgctrl. The GitHub path will not work.

metalcated commented 4 years ago

github.com/mdlayher/wireguardctrl expects import "golang.zx2c4.com/wireguard/wgctrl"

mdlayher commented 4 years ago

Correct, you have to use golang.zx2c4.com/wireguard/wgctrl.