stolostron / multicloud-operators-subscription

Fork of https://github.com/open-cluster-management-io/multicloud-operators-subscription
Apache License 2.0
47 stars 41 forks source link

"make build" fails with +incompatible: invalid pseudo-version: preceding tag (v3.9.0) not found #83

Closed rwsu closed 4 years ago

rwsu commented 4 years ago

I'm on Fedora 31 and using go version go1.13.5 linux/amd64.

[rwsu@mini-f31 multicloud-operators-subscription]$ make build
+ OUT=build/_output/bin/multicloud-operators-subscription
+ shift
+ set -e
+ BUILD_GOOS=linux
+ BUILD_GOARCH=amd64
+ GOBINARY=go
+ BUILDINFO=
+ STATIC=1
+ LDFLAGS='-extldflags -static'
+ GOBUILDFLAGS=
+ IFS=' '
+ read -r -a GOBUILDFLAGS_ARRAY
+ GCFLAGS=
+ export CGO_ENABLED=0
+ CGO_ENABLED=0
+ [[ 1 != \1 ]]
+ GOOS=linux
+ GOARCH=amd64
+ go build -x -o build/_output/bin/multicloud-operators-subscription -ldflags '-extldflags -static' ./cmd/manager
WORK=/tmp/go-build398595899
mkdir -p /home/rwsu/go/pkg/mod/cache/vcs # git3 https://github.com/openshift/api
# lock /home/rwsu/go/pkg/mod/cache/vcs/aec9f97d8120c1be2931401817e2528afb2e0d4b45f89114a59bf32585b17b5a.lock# /home/rwsu/go/pkg/mod/cache/vcs/aec9f97d8120c1be2931401817e2528afb2e0d4b45f89114a59bf32585b17b5a for git3 https://github.com/openshift/api
cd /home/rwsu/go/pkg/mod/cache/vcs/aec9f97d8120c1be2931401817e2528afb2e0d4b45f89114a59bf32585b17b5a; git -c log.showsignature=false log -n1 '--format=format:%H %ct %D' 77b8897ec79a --
0.031s # cd /home/rwsu/go/pkg/mod/cache/vcs/aec9f97d8120c1be2931401817e2528afb2e0d4b45f89114a59bf32585b17b5a; git -c log.showsignature=false log -n1 '--format=format:%H %ct %D' 77b8897ec79a --
cd /home/rwsu/go/pkg/mod/cache/vcs/aec9f97d8120c1be2931401817e2528afb2e0d4b45f89114a59bf32585b17b5a; git ls-remote -q https://github.com/openshift/api
1.133s # cd /home/rwsu/go/pkg/mod/cache/vcs/aec9f97d8120c1be2931401817e2528afb2e0d4b45f89114a59bf32585b17b5a; git ls-remote -q https://github.com/openshift/api
go: github.com/operator-framework/operator-sdk@v0.12.0 requires
    github.com/operator-framework/operator-lifecycle-manager@v0.0.0-20190605231540-b8a4faf68e36 requires
    github.com/openshift/api@v3.9.1-0.20190424152011-77b8897ec79a+incompatible: invalid pseudo-version: preceding tag (v3.9.0) not found

real    0m1.203s
user    0m0.186s
sys 0m0.049s
make: *** [Makefile:118: build] Error 1
rwsu commented 4 years ago

https://github.com/operator-framework/operator-sdk/issues/2394 mentions setting GOPROXY=https://proxy.golang.org as a workaround.

rokej commented 4 years ago

This problem can be resolved by the default go environment settings with GOPROXY="https://proxy.golang.org,direct"