wireguard-go compilation fails
make update-deps shows the error:
:; make update-dep
rm -rf .gopath
mkdir -p .gopath/src/git.zx2c4.com/
ln -s ../../.. .gopath/src/git.zx2c4.com/wireguard-go touch .gopath/.created
command -v dep >/dev/null || go get -v github.com/golang/dep/cmd/dep
...
Fetching https://gopkg.in/yaml.v2?go-get=1
Parsing meta tags from https://gopkg.in/yaml.v2?go-get=1 (status code 200)
get "gopkg.in/yaml.v2": found meta tag main.metaImport{Prefix:"gopkg.in/yaml.v2", VCS:"git", RepoRoot:"https://gopkg.in/yaml.v2"} at https://gopkg.in/yaml.v2?go-get=1
gopkg.in/yaml.v2 (download)
Makefile:48: recipe for target 'update-dep' failed
make: *** [update-dep] Error 1
Using apt to install golang-goyaml-dev did not get past that error.
I'd like to use wg on some virtuals which do not support modules, mainly to encrypt some udp traffic.
Subsequent runs of make fail differently:
:; make
command -v dep >/dev/null || go get -v github.com/golang/dep/cmd/dep import "context": import path doesn't contain a slash package context: unrecognized import path "context" Makefile:34: recipe for target 'vendor/.created' failed
make: *** [vendor/.created] Error 1
-JimC
Signature · 1 line
James Cloos <[email protected]> OpenPGP: 0x997A9F17ED7DAEA6
In case anyone sees this thread in a search, the solution is that the version of golang Debian packages is too old.
If one manually installs golang 10, then wireguard-go compiles fine.
-JimC
Signature · 5 lines
James Cloos <[email protected]> OpenPGP: 0x997A9F17ED7DAEA6 _______________________________________________ WireGuard mailing list [email protected] https://lists.zx2c4.com/mailman/listinfo/wireguard