Travis: Use old goxnet for Go 1.11.x and earlier

Fixes a build fail for Darwin targets
pull/129/head
Jeremy Rand 4 years ago
parent ca0fe55528
commit 7e454f8b59
No known key found for this signature in database
GPG Key ID: FD7550C2EB800711

@ -39,6 +39,11 @@ install:
- if [[ "$(go version)" =~ go1.[56789] ]]; then GOXSYS_BRANCH=release-branch.go1.13; fi
- if [[ "$(go version)" =~ go1.1[01] ]]; then GOXSYS_BRANCH=release-branch.go1.13; fi
- pushd $(go env GOPATH)/src/golang.org/x/sys; git checkout $GOXSYS_BRANCH; popd
- GOXNET_BRANCH=master
# goxnet dropped support for old go stdlib
- if [[ "$(go version)" =~ go1.[56789] ]]; then GOXNET_BRANCH=release-branch.go1.12; fi
- if [[ "$(go version)" =~ go1.1[01] ]]; then GOXNET_BRANCH=release-branch.go1.12; fi
- pushd $(go env GOPATH)/src/golang.org/x/net; git checkout $GOXNET_BRANCH; popd
- go generate -v github.com/namecoin/x509-signature-splice/...
- go get -tags "$TAGS" -v -t ./...
- env GOOS=windows GOARCH=amd64 go get -tags "$TAGS" -d -v -t ./...

Loading…
Cancel
Save