diff --git a/go.mod b/go.mod index 75a4d9389..dd45e03fd 100644 --- a/go.mod +++ b/go.mod @@ -20,7 +20,7 @@ require ( github.com/biogo/hts v0.0.0-20160420073057-50da7d4131a3 github.com/c2h5oh/datasize v0.0.0-20171227191756-4eba002a5eae github.com/cheggaaa/pb v1.0.27 - github.com/creack/goselect v0.0.0-20180210034346-528c74964609 // indirect + github.com/creack/goselect v0.1.0 // indirect github.com/denverdino/aliyungo v0.0.0-20190220033614-36e2ae938978 github.com/dgrijalva/jwt-go v3.2.0+incompatible github.com/digitalocean/godo v1.11.1 diff --git a/go.sum b/go.sum index ad20cc1f9..1691e31d8 100644 --- a/go.sum +++ b/go.sum @@ -72,8 +72,8 @@ github.com/cheggaaa/pb v1.0.27 h1:wIkZHkNfC7R6GI5w7l/PdAdzXzlrbcI3p8OAlnkTsnc= github.com/cheggaaa/pb v1.0.27/go.mod h1:pQciLPpbU0oxA0h+VJYYLxO+XeDQb5pZijXscXHm81s= github.com/client9/misspell v0.3.4/go.mod h1:qj6jICC3Q7zFZvVWo7KLAzC3yx5G7kyvSDkc90ppPyw= github.com/coreos/go-systemd v0.0.0-20181012123002-c6f51f82210d/go.mod h1:F5haX7vjVVG0kc13fIWeqUViNPyEJxv/OmvnBo0Yme4= -github.com/creack/goselect v0.0.0-20180210034346-528c74964609 h1:FSxXMd2wCHj6GqgBdo4UtVA9R2aieIDvSniepqyOppU= -github.com/creack/goselect v0.0.0-20180210034346-528c74964609/go.mod h1:gHrIcH/9UZDn2qgeTUeW5K9eZsVYCH6/60J/FHysWyE= +github.com/creack/goselect v0.1.0 h1:4QiXIhcpSQF50XGaBsFzesjwX/1qOY5bOveQPmN9CXY= +github.com/creack/goselect v0.1.0/go.mod h1:gHrIcH/9UZDn2qgeTUeW5K9eZsVYCH6/60J/FHysWyE= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= diff --git a/vendor/github.com/creack/goselect/README.md b/vendor/github.com/creack/goselect/README.md index d5d06510e..807ab85e8 100644 --- a/vendor/github.com/creack/goselect/README.md +++ b/vendor/github.com/creack/goselect/README.md @@ -4,27 +4,130 @@ select(2) implementation in Go ## Supported platforms -| | 386 | amd64 | arm | arm64 | -|---------------|-----|-------|-----|-------| -| **linux** | yes | yes | yes | yes | -| **darwin** | yes | yes | n/a | ?? | -| **freebsd** | yes | yes | yes | ?? | -| **openbsd** | yes | yes | yes | ?? | -| **netbsd** | yes | yes | yes | ?? | -| **dragonfly** | n/a | yes | n/a | ?? | -| **solaris** | n/a | no | n/a | ?? | -| **plan9** | no | no | n/a | ?? | -| **windows** | yes | yes | n/a | ?? | -| **android** | n/a | n/a | no | ?? | +| | 386 | amd64 | arm | arm64 | mips | mipsle | mips64 | mips64le | ppc64le | s390x | +|---------------|-----|-------|-----|-------|------|--------|--------|----------|---------|-------| +| **linux** | yes | yes | yes | yes | yes | yes | yes | yes | yes | yes | +| **darwin** | yes | yes | ?? | ?? | n/a | n/a | n/a | n/a | n/a | n/a | +| **freebsd** | yes | yes | yes | n/a | n/a | n/a | n/a | n/a | n/a | n/a | +| **openbsd** | yes | yes | yes | n/a | n/a | n/a | n/a | n/a | n/a | n/a | +| **netbsd** | yes | yes | yes | n/a | n/a | n/a | n/a | n/a | n/a | n/a | +| **dragonfly** | n/a | yes | n/a | n/a | n/a | n/a | n/a | n/a | n/a | n/a | +| **solaris** | n/a | no | n/a | n/a | n/a | n/a | n/a | n/a | n/a | n/a | +| **plan9** | no | no | no | n/a | n/a | n/a | n/a | n/a | n/a | n/a | +| **windows** | yes | yes | n/a | n/a | n/a | n/a | n/a | n/a | n/a | n/a | +| **android** | ?? | ?? | ?? | ?? | n/a | n/a | n/a | n/a | n/a | n/a | *n/a: platform not supported by Go +*??: not tested -Go on `plan9` and `solaris` do not implement `syscall.Select` not `syscall.SYS_SELECT`. +Go on `plan9` and `solaris` do not implement `syscall.Select` nor `syscall.SYS_SELECT`. -## Cross compile +## Cross compile test -Using davecheney's https://github.com/davecheney/golang-crosscompile +Note that this only tests the compilation, not the functionality. -``` -export PLATFORMS="darwin/386 darwin/amd64 freebsd/386 freebsd/amd64 freebsd/arm linux/386 linux/amd64 linux/arm windows/386 windows/amd64 openbsd/386 openbsd/amd64 netbsd/386 netbsd/amd64 dragonfly/amd64 plan9/386 plan9/amd64 solaris/amd64" +```sh +$> ./test_crosscompile.sh > /dev/null | sort +[OK] android/386 +[OK] android/amd64 +[OK] android/arm +[OK] android/arm64 +[OK] darwin/386 +[OK] darwin/amd64 +[OK] darwin/arm +[OK] darwin/arm64 +[OK] dragonfly/amd64 +[OK] freebsd/386 +[OK] freebsd/amd64 +[OK] freebsd/arm +[OK] linux/386 +[OK] linux/amd64 +[OK] linux/arm +[OK] linux/arm64 +[OK] linux/mips +[OK] linux/mips64 +[OK] linux/mips64le +[OK] linux/mipsle +[OK] linux/ppc64le +[OK] linux/s390x +[OK] netbsd/386 +[OK] netbsd/amd64 +[OK] netbsd/arm +[OK] openbsd/386 +[OK] openbsd/amd64 +[OK] openbsd/arm +[OK] plan9/386 +[OK] plan9/amd64 +[OK] plan9/arm +[OK] solaris/amd64 +[OK] windows/386 +[OK] windows/amd64 +[OK] windows/arm + +# Expected failures. +[KO] android/mips +[KO] android/mips64 +[KO] android/mips64le +[KO] android/mipsle +[KO] android/ppc64le +[KO] android/s390x +[KO] darwin/mips +[KO] darwin/mips64 +[KO] darwin/mips64le +[KO] darwin/mipsle +[KO] darwin/ppc64le +[KO] darwin/s390x +[KO] dragonfly/386 +[KO] dragonfly/arm +[KO] dragonfly/arm64 +[KO] dragonfly/mips +[KO] dragonfly/mips64 +[KO] dragonfly/mips64le +[KO] dragonfly/mipsle +[KO] dragonfly/ppc64le +[KO] dragonfly/s390x +[KO] freebsd/arm64 +[KO] freebsd/mips +[KO] freebsd/mips64 +[KO] freebsd/mips64le +[KO] freebsd/mipsle +[KO] freebsd/ppc64le +[KO] freebsd/s390x +[KO] netbsd/arm64 +[KO] netbsd/mips +[KO] netbsd/mips64 +[KO] netbsd/mips64le +[KO] netbsd/mipsle +[KO] netbsd/ppc64le +[KO] netbsd/s390x +[KO] openbsd/arm64 +[KO] openbsd/mips +[KO] openbsd/mips64 +[KO] openbsd/mips64le +[KO] openbsd/mipsle +[KO] openbsd/ppc64le +[KO] openbsd/s390x +[KO] plan9/arm64 +[KO] plan9/mips +[KO] plan9/mips64 +[KO] plan9/mips64le +[KO] plan9/mipsle +[KO] plan9/ppc64le +[KO] plan9/s390x +[KO] solaris/386 +[KO] solaris/arm +[KO] solaris/arm64 +[KO] solaris/mips +[KO] solaris/mips64 +[KO] solaris/mips64le +[KO] solaris/mipsle +[KO] solaris/ppc64le +[KO] solaris/s390x +[KO] windows/arm64 +[KO] windows/mips +[KO] windows/mips64 +[KO] windows/mips64le +[KO] windows/mipsle +[KO] windows/ppc64le +[KO] windows/s390x ``` diff --git a/vendor/github.com/creack/goselect/fdset_32.go b/vendor/github.com/creack/goselect/fdset_32.go index 8b90d21a9..a346d3f1c 100644 --- a/vendor/github.com/creack/goselect/fdset_32.go +++ b/vendor/github.com/creack/goselect/fdset_32.go @@ -1,4 +1,4 @@ -// +build darwin openbsd netbsd 386 arm +// +build darwin openbsd netbsd 386 arm mips mipsle package goselect diff --git a/vendor/github.com/creack/goselect/fdset_64.go b/vendor/github.com/creack/goselect/fdset_64.go index 71b7c9cc3..0e70213d8 100644 --- a/vendor/github.com/creack/goselect/fdset_64.go +++ b/vendor/github.com/creack/goselect/fdset_64.go @@ -1,5 +1,5 @@ // +build !darwin,!netbsd,!openbsd -// +build amd64 arm64 ppc64le +// +build amd64 arm64 ppc64le mips64 mips64le s390x package goselect diff --git a/vendor/github.com/creack/goselect/test_crosscompile.sh b/vendor/github.com/creack/goselect/test_crosscompile.sh index 533ca6647..f8e1d292f 100644 --- a/vendor/github.com/creack/goselect/test_crosscompile.sh +++ b/vendor/github.com/creack/goselect/test_crosscompile.sh @@ -1,17 +1,112 @@ -export GOOS=linux; export GOARCH=arm; echo $GOOS/$GOARCH; go build -export GOOS=linux; export GOARCH=arm64; echo $GOOS/$GOARCH; go build -export GOOS=linux; export GOARCH=amd64; echo $GOOS/$GOARCH; go build -export GOOS=linux; export GOARCH=386; echo $GOOS/$GOARCH; go build -export GOOS=darwin; export GOARCH=arm; echo $GOOS/$GOARCH; go build -export GOOS=darwin; export GOARCH=arm64; echo $GOOS/$GOARCH; go build -export GOOS=darwin; export GOARCH=amd64; echo $GOOS/$GOARCH; go build -export GOOS=darwin; export GOARCH=386; echo $GOOS/$GOARCH; go build -export GOOS=freebsd; export GOARCH=arm; echo $GOOS/$GOARCH; go build -export GOOS=freebsd; export GOARCH=amd64; echo $GOOS/$GOARCH; go build -export GOOS=freebsd; export GOARCH=386; echo $GOOS/$GOARCH; go build -export GOOS=openbsd; export GOARCH=arm; echo $GOOS/$GOARCH; go build -export GOOS=openbsd; export GOARCH=amd64; echo $GOOS/$GOARCH; go build -export GOOS=openbsd; export GOARCH=386; echo $GOOS/$GOARCH; go build -export GOOS=netbsd; export GOARCH=arm; echo $GOOS/$GOARCH; go build -export GOOS=netbsd; export GOARCH=amd64; echo $GOOS/$GOARCH; go build -export GOOS=netbsd; export GOARCH=386; echo $GOOS/$GOARCH; go build +rm -rf crosstest +mkdir -p crosstest + +export GOOS=linux; export GOARCH=arm; echo "$(go build -o crosstest/${GOOS}_${GOARCH} && echo '[OK]' || echo '[KO]') $GOOS/$GOARCH"; +export GOOS=linux; export GOARCH=arm64; echo "$(go build -o crosstest/${GOOS}_${GOARCH} && echo '[OK]' || echo '[KO]') $GOOS/$GOARCH"; +export GOOS=linux; export GOARCH=amd64; echo "$(go build -o crosstest/${GOOS}_${GOARCH} && echo '[OK]' || echo '[KO]') $GOOS/$GOARCH"; +export GOOS=linux; export GOARCH=386; echo "$(go build -o crosstest/${GOOS}_${GOARCH} && echo '[OK]' || echo '[KO]') $GOOS/$GOARCH"; +export GOOS=linux; export GOARCH=mips; echo "$(go build -o crosstest/${GOOS}_${GOARCH} && echo '[OK]' || echo '[KO]') $GOOS/$GOARCH"; +export GOOS=linux; export GOARCH=mipsle; echo "$(go build -o crosstest/${GOOS}_${GOARCH} && echo '[OK]' || echo '[KO]') $GOOS/$GOARCH"; +export GOOS=linux; export GOARCH=mips64; echo "$(go build -o crosstest/${GOOS}_${GOARCH} && echo '[OK]' || echo '[KO]') $GOOS/$GOARCH"; +export GOOS=linux; export GOARCH=mips64le; echo "$(go build -o crosstest/${GOOS}_${GOARCH} && echo '[OK]' || echo '[KO]') $GOOS/$GOARCH"; +export GOOS=linux; export GOARCH=ppc64le; echo "$(go build -o crosstest/${GOOS}_${GOARCH} && echo '[OK]' || echo '[KO]') $GOOS/$GOARCH"; +export GOOS=linux; export GOARCH=s390x; echo "$(go build -o crosstest/${GOOS}_${GOARCH} && echo '[OK]' || echo '[KO]') $GOOS/$GOARCH"; + +export GOOS=darwin; export GOARCH=arm; echo "$(go build -o crosstest/${GOOS}_${GOARCH} && echo '[OK]' || echo '[KO]') $GOOS/$GOARCH"; +export GOOS=darwin; export GOARCH=arm64; echo "$(go build -o crosstest/${GOOS}_${GOARCH} && echo '[OK]' || echo '[KO]') $GOOS/$GOARCH"; +export GOOS=darwin; export GOARCH=amd64; echo "$(go build -o crosstest/${GOOS}_${GOARCH} && echo '[OK]' || echo '[KO]') $GOOS/$GOARCH"; +export GOOS=darwin; export GOARCH=386; echo "$(go build -o crosstest/${GOOS}_${GOARCH} && echo '[OK]' || echo '[KO]') $GOOS/$GOARCH"; +export GOOS=darwin; export GOARCH=mips; echo "$(go build -o crosstest/${GOOS}_${GOARCH} && echo '[OK]' || echo '[KO]') $GOOS/$GOARCH"; +export GOOS=darwin; export GOARCH=mipsle; echo "$(go build -o crosstest/${GOOS}_${GOARCH} && echo '[OK]' || echo '[KO]') $GOOS/$GOARCH"; +export GOOS=darwin; export GOARCH=mips64; echo "$(go build -o crosstest/${GOOS}_${GOARCH} && echo '[OK]' || echo '[KO]') $GOOS/$GOARCH"; +export GOOS=darwin; export GOARCH=mips64le; echo "$(go build -o crosstest/${GOOS}_${GOARCH} && echo '[OK]' || echo '[KO]') $GOOS/$GOARCH"; +export GOOS=darwin; export GOARCH=ppc64le; echo "$(go build -o crosstest/${GOOS}_${GOARCH} && echo '[OK]' || echo '[KO]') $GOOS/$GOARCH"; +export GOOS=darwin; export GOARCH=s390x; echo "$(go build -o crosstest/${GOOS}_${GOARCH} && echo '[OK]' || echo '[KO]') $GOOS/$GOARCH"; + +export GOOS=freebsd; export GOARCH=arm; echo "$(go build -o crosstest/${GOOS}_${GOARCH} && echo '[OK]' || echo '[KO]') $GOOS/$GOARCH"; +export GOOS=freebsd; export GOARCH=arm64; echo "$(go build -o crosstest/${GOOS}_${GOARCH} && echo '[OK]' || echo '[KO]') $GOOS/$GOARCH"; +export GOOS=freebsd; export GOARCH=amd64; echo "$(go build -o crosstest/${GOOS}_${GOARCH} && echo '[OK]' || echo '[KO]') $GOOS/$GOARCH"; +export GOOS=freebsd; export GOARCH=386; echo "$(go build -o crosstest/${GOOS}_${GOARCH} && echo '[OK]' || echo '[KO]') $GOOS/$GOARCH"; +export GOOS=freebsd; export GOARCH=mips; echo "$(go build -o crosstest/${GOOS}_${GOARCH} && echo '[OK]' || echo '[KO]') $GOOS/$GOARCH"; +export GOOS=freebsd; export GOARCH=mipsle; echo "$(go build -o crosstest/${GOOS}_${GOARCH} && echo '[OK]' || echo '[KO]') $GOOS/$GOARCH"; +export GOOS=freebsd; export GOARCH=mips64; echo "$(go build -o crosstest/${GOOS}_${GOARCH} && echo '[OK]' || echo '[KO]') $GOOS/$GOARCH"; +export GOOS=freebsd; export GOARCH=mips64le; echo "$(go build -o crosstest/${GOOS}_${GOARCH} && echo '[OK]' || echo '[KO]') $GOOS/$GOARCH"; +export GOOS=freebsd; export GOARCH=ppc64le; echo "$(go build -o crosstest/${GOOS}_${GOARCH} && echo '[OK]' || echo '[KO]') $GOOS/$GOARCH"; +export GOOS=freebsd; export GOARCH=s390x; echo "$(go build -o crosstest/${GOOS}_${GOARCH} && echo '[OK]' || echo '[KO]') $GOOS/$GOARCH"; + +export GOOS=openbsd; export GOARCH=arm; echo "$(go build -o crosstest/${GOOS}_${GOARCH} && echo '[OK]' || echo '[KO]') $GOOS/$GOARCH"; +export GOOS=openbsd; export GOARCH=arm64; echo "$(go build -o crosstest/${GOOS}_${GOARCH} && echo '[OK]' || echo '[KO]') $GOOS/$GOARCH"; +export GOOS=openbsd; export GOARCH=amd64; echo "$(go build -o crosstest/${GOOS}_${GOARCH} && echo '[OK]' || echo '[KO]') $GOOS/$GOARCH"; +export GOOS=openbsd; export GOARCH=386; echo "$(go build -o crosstest/${GOOS}_${GOARCH} && echo '[OK]' || echo '[KO]') $GOOS/$GOARCH"; +export GOOS=openbsd; export GOARCH=mips; echo "$(go build -o crosstest/${GOOS}_${GOARCH} && echo '[OK]' || echo '[KO]') $GOOS/$GOARCH"; +export GOOS=openbsd; export GOARCH=mipsle; echo "$(go build -o crosstest/${GOOS}_${GOARCH} && echo '[OK]' || echo '[KO]') $GOOS/$GOARCH"; +export GOOS=openbsd; export GOARCH=mips64; echo "$(go build -o crosstest/${GOOS}_${GOARCH} && echo '[OK]' || echo '[KO]') $GOOS/$GOARCH"; +export GOOS=openbsd; export GOARCH=mips64le; echo "$(go build -o crosstest/${GOOS}_${GOARCH} && echo '[OK]' || echo '[KO]') $GOOS/$GOARCH"; +export GOOS=openbsd; export GOARCH=ppc64le; echo "$(go build -o crosstest/${GOOS}_${GOARCH} && echo '[OK]' || echo '[KO]') $GOOS/$GOARCH"; +export GOOS=openbsd; export GOARCH=s390x; echo "$(go build -o crosstest/${GOOS}_${GOARCH} && echo '[OK]' || echo '[KO]') $GOOS/$GOARCH"; + +export GOOS=netbsd; export GOARCH=arm; echo "$(go build -o crosstest/${GOOS}_${GOARCH} && echo '[OK]' || echo '[KO]') $GOOS/$GOARCH"; +export GOOS=netbsd; export GOARCH=arm64; echo "$(go build -o crosstest/${GOOS}_${GOARCH} && echo '[OK]' || echo '[KO]') $GOOS/$GOARCH"; +export GOOS=netbsd; export GOARCH=amd64; echo "$(go build -o crosstest/${GOOS}_${GOARCH} && echo '[OK]' || echo '[KO]') $GOOS/$GOARCH"; +export GOOS=netbsd; export GOARCH=386; echo "$(go build -o crosstest/${GOOS}_${GOARCH} && echo '[OK]' || echo '[KO]') $GOOS/$GOARCH"; +export GOOS=netbsd; export GOARCH=mips; echo "$(go build -o crosstest/${GOOS}_${GOARCH} && echo '[OK]' || echo '[KO]') $GOOS/$GOARCH"; +export GOOS=netbsd; export GOARCH=mipsle; echo "$(go build -o crosstest/${GOOS}_${GOARCH} && echo '[OK]' || echo '[KO]') $GOOS/$GOARCH"; +export GOOS=netbsd; export GOARCH=mips64; echo "$(go build -o crosstest/${GOOS}_${GOARCH} && echo '[OK]' || echo '[KO]') $GOOS/$GOARCH"; +export GOOS=netbsd; export GOARCH=mips64le; echo "$(go build -o crosstest/${GOOS}_${GOARCH} && echo '[OK]' || echo '[KO]') $GOOS/$GOARCH"; +export GOOS=netbsd; export GOARCH=ppc64le; echo "$(go build -o crosstest/${GOOS}_${GOARCH} && echo '[OK]' || echo '[KO]') $GOOS/$GOARCH"; +export GOOS=netbsd; export GOARCH=s390x; echo "$(go build -o crosstest/${GOOS}_${GOARCH} && echo '[OK]' || echo '[KO]') $GOOS/$GOARCH"; + +export GOOS=dragonfly; export GOARCH=arm; echo "$(go build -o crosstest/${GOOS}_${GOARCH} && echo '[OK]' || echo '[KO]') $GOOS/$GOARCH"; +export GOOS=dragonfly; export GOARCH=arm64; echo "$(go build -o crosstest/${GOOS}_${GOARCH} && echo '[OK]' || echo '[KO]') $GOOS/$GOARCH"; +export GOOS=dragonfly; export GOARCH=amd64; echo "$(go build -o crosstest/${GOOS}_${GOARCH} && echo '[OK]' || echo '[KO]') $GOOS/$GOARCH"; +export GOOS=dragonfly; export GOARCH=386; echo "$(go build -o crosstest/${GOOS}_${GOARCH} && echo '[OK]' || echo '[KO]') $GOOS/$GOARCH"; +export GOOS=dragonfly; export GOARCH=mips; echo "$(go build -o crosstest/${GOOS}_${GOARCH} && echo '[OK]' || echo '[KO]') $GOOS/$GOARCH"; +export GOOS=dragonfly; export GOARCH=mipsle; echo "$(go build -o crosstest/${GOOS}_${GOARCH} && echo '[OK]' || echo '[KO]') $GOOS/$GOARCH"; +export GOOS=dragonfly; export GOARCH=mips64; echo "$(go build -o crosstest/${GOOS}_${GOARCH} && echo '[OK]' || echo '[KO]') $GOOS/$GOARCH"; +export GOOS=dragonfly; export GOARCH=mips64le; echo "$(go build -o crosstest/${GOOS}_${GOARCH} && echo '[OK]' || echo '[KO]') $GOOS/$GOARCH"; +export GOOS=dragonfly; export GOARCH=ppc64le; echo "$(go build -o crosstest/${GOOS}_${GOARCH} && echo '[OK]' || echo '[KO]') $GOOS/$GOARCH"; +export GOOS=dragonfly; export GOARCH=s390x; echo "$(go build -o crosstest/${GOOS}_${GOARCH} && echo '[OK]' || echo '[KO]') $GOOS/$GOARCH"; + +export GOOS=solaris; export GOARCH=arm; echo "$(go build -o crosstest/${GOOS}_${GOARCH} && echo '[OK]' || echo '[KO]') $GOOS/$GOARCH"; +export GOOS=solaris; export GOARCH=arm64; echo "$(go build -o crosstest/${GOOS}_${GOARCH} && echo '[OK]' || echo '[KO]') $GOOS/$GOARCH"; +export GOOS=solaris; export GOARCH=amd64; echo "$(go build -o crosstest/${GOOS}_${GOARCH} && echo '[OK]' || echo '[KO]') $GOOS/$GOARCH"; +export GOOS=solaris; export GOARCH=386; echo "$(go build -o crosstest/${GOOS}_${GOARCH} && echo '[OK]' || echo '[KO]') $GOOS/$GOARCH"; +export GOOS=solaris; export GOARCH=mips; echo "$(go build -o crosstest/${GOOS}_${GOARCH} && echo '[OK]' || echo '[KO]') $GOOS/$GOARCH"; +export GOOS=solaris; export GOARCH=mipsle; echo "$(go build -o crosstest/${GOOS}_${GOARCH} && echo '[OK]' || echo '[KO]') $GOOS/$GOARCH"; +export GOOS=solaris; export GOARCH=mips64; echo "$(go build -o crosstest/${GOOS}_${GOARCH} && echo '[OK]' || echo '[KO]') $GOOS/$GOARCH"; +export GOOS=solaris; export GOARCH=mips64le; echo "$(go build -o crosstest/${GOOS}_${GOARCH} && echo '[OK]' || echo '[KO]') $GOOS/$GOARCH"; +export GOOS=solaris; export GOARCH=ppc64le; echo "$(go build -o crosstest/${GOOS}_${GOARCH} && echo '[OK]' || echo '[KO]') $GOOS/$GOARCH"; +export GOOS=solaris; export GOARCH=s390x; echo "$(go build -o crosstest/${GOOS}_${GOARCH} && echo '[OK]' || echo '[KO]') $GOOS/$GOARCH"; + +export GOOS=plan9; export GOARCH=arm; echo "$(go build -o crosstest/${GOOS}_${GOARCH} && echo '[OK]' || echo '[KO]') $GOOS/$GOARCH"; +export GOOS=plan9; export GOARCH=arm64; echo "$(go build -o crosstest/${GOOS}_${GOARCH} && echo '[OK]' || echo '[KO]') $GOOS/$GOARCH"; +export GOOS=plan9; export GOARCH=amd64; echo "$(go build -o crosstest/${GOOS}_${GOARCH} && echo '[OK]' || echo '[KO]') $GOOS/$GOARCH"; +export GOOS=plan9; export GOARCH=386; echo "$(go build -o crosstest/${GOOS}_${GOARCH} && echo '[OK]' || echo '[KO]') $GOOS/$GOARCH"; +export GOOS=plan9; export GOARCH=mips; echo "$(go build -o crosstest/${GOOS}_${GOARCH} && echo '[OK]' || echo '[KO]') $GOOS/$GOARCH"; +export GOOS=plan9; export GOARCH=mipsle; echo "$(go build -o crosstest/${GOOS}_${GOARCH} && echo '[OK]' || echo '[KO]') $GOOS/$GOARCH"; +export GOOS=plan9; export GOARCH=mips64; echo "$(go build -o crosstest/${GOOS}_${GOARCH} && echo '[OK]' || echo '[KO]') $GOOS/$GOARCH"; +export GOOS=plan9; export GOARCH=mips64le; echo "$(go build -o crosstest/${GOOS}_${GOARCH} && echo '[OK]' || echo '[KO]') $GOOS/$GOARCH"; +export GOOS=plan9; export GOARCH=ppc64le; echo "$(go build -o crosstest/${GOOS}_${GOARCH} && echo '[OK]' || echo '[KO]') $GOOS/$GOARCH"; +export GOOS=plan9; export GOARCH=s390x; echo "$(go build -o crosstest/${GOOS}_${GOARCH} && echo '[OK]' || echo '[KO]') $GOOS/$GOARCH"; + +export GOOS=windows; export GOARCH=arm; echo "$(go build -o crosstest/${GOOS}_${GOARCH} && echo '[OK]' || echo '[KO]') $GOOS/$GOARCH"; +export GOOS=windows; export GOARCH=arm64; echo "$(go build -o crosstest/${GOOS}_${GOARCH} && echo '[OK]' || echo '[KO]') $GOOS/$GOARCH"; +export GOOS=windows; export GOARCH=amd64; echo "$(go build -o crosstest/${GOOS}_${GOARCH} && echo '[OK]' || echo '[KO]') $GOOS/$GOARCH"; +export GOOS=windows; export GOARCH=386; echo "$(go build -o crosstest/${GOOS}_${GOARCH} && echo '[OK]' || echo '[KO]') $GOOS/$GOARCH"; +export GOOS=windows; export GOARCH=mips; echo "$(go build -o crosstest/${GOOS}_${GOARCH} && echo '[OK]' || echo '[KO]') $GOOS/$GOARCH"; +export GOOS=windows; export GOARCH=mipsle; echo "$(go build -o crosstest/${GOOS}_${GOARCH} && echo '[OK]' || echo '[KO]') $GOOS/$GOARCH"; +export GOOS=windows; export GOARCH=mips64; echo "$(go build -o crosstest/${GOOS}_${GOARCH} && echo '[OK]' || echo '[KO]') $GOOS/$GOARCH"; +export GOOS=windows; export GOARCH=mips64le; echo "$(go build -o crosstest/${GOOS}_${GOARCH} && echo '[OK]' || echo '[KO]') $GOOS/$GOARCH"; +export GOOS=windows; export GOARCH=ppc64le; echo "$(go build -o crosstest/${GOOS}_${GOARCH} && echo '[OK]' || echo '[KO]') $GOOS/$GOARCH"; +export GOOS=windows; export GOARCH=s390x; echo "$(go build -o crosstest/${GOOS}_${GOARCH} && echo '[OK]' || echo '[KO]') $GOOS/$GOARCH"; + +export GOOS=android; export GOARCH=arm; echo "$(go build -o crosstest/${GOOS}_${GOARCH} && echo '[OK]' || echo '[KO]') $GOOS/$GOARCH"; +export GOOS=android; export GOARCH=arm64; echo "$(go build -o crosstest/${GOOS}_${GOARCH} && echo '[OK]' || echo '[KO]') $GOOS/$GOARCH"; +export GOOS=android; export GOARCH=amd64; echo "$(go build -o crosstest/${GOOS}_${GOARCH} && echo '[OK]' || echo '[KO]') $GOOS/$GOARCH"; +export GOOS=android; export GOARCH=386; echo "$(go build -o crosstest/${GOOS}_${GOARCH} && echo '[OK]' || echo '[KO]') $GOOS/$GOARCH"; +export GOOS=android; export GOARCH=mips; echo "$(go build -o crosstest/${GOOS}_${GOARCH} && echo '[OK]' || echo '[KO]') $GOOS/$GOARCH"; +export GOOS=android; export GOARCH=mipsle; echo "$(go build -o crosstest/${GOOS}_${GOARCH} && echo '[OK]' || echo '[KO]') $GOOS/$GOARCH"; +export GOOS=android; export GOARCH=mips64; echo "$(go build -o crosstest/${GOOS}_${GOARCH} && echo '[OK]' || echo '[KO]') $GOOS/$GOARCH"; +export GOOS=android; export GOARCH=mips64le; echo "$(go build -o crosstest/${GOOS}_${GOARCH} && echo '[OK]' || echo '[KO]') $GOOS/$GOARCH"; +export GOOS=android; export GOARCH=ppc64le; echo "$(go build -o crosstest/${GOOS}_${GOARCH} && echo '[OK]' || echo '[KO]') $GOOS/$GOARCH"; +export GOOS=android; export GOARCH=s390x; echo "$(go build -o crosstest/${GOOS}_${GOARCH} && echo '[OK]' || echo '[KO]') $GOOS/$GOARCH"; diff --git a/vendor/github.com/creack/goselect/zselect_windows.go b/vendor/github.com/creack/goselect/zselect_windows.go index c3b10e1d0..e01502c07 100644 --- a/vendor/github.com/creack/goselect/zselect_windows.go +++ b/vendor/github.com/creack/goselect/zselect_windows.go @@ -20,8 +20,6 @@ func _select(nfds int, readfds *FDSet, writefds *FDSet, exceptfds *FDSet, timeou if total == 0 { if e1 != 0 { err = error(e1) - } else { - err = syscall.EINVAL } } return diff --git a/vendor/modules.txt b/vendor/modules.txt index 1b1799e5d..884b4da12 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -127,7 +127,7 @@ github.com/census-instrumentation/opencensus-proto/gen-go/resource/v1 github.com/census-instrumentation/opencensus-proto/gen-go/trace/v1 # github.com/cheggaaa/pb v1.0.27 github.com/cheggaaa/pb -# github.com/creack/goselect v0.0.0-20180210034346-528c74964609 +# github.com/creack/goselect v0.1.0 github.com/creack/goselect # github.com/davecgh/go-spew v1.1.1 github.com/davecgh/go-spew/spew