smartcontractkit / chainlink

node of the decentralized oracle network, bridging on and off-chain computation
https://chain.link
Other
6.95k stars 1.69k forks source link

[DEVEL] chainlink/v2 v2.0.0-00010101000000-000000000000 invalid version: unknown revision 000000000000 #12731

Open andriykutsevol opened 5 months ago

andriykutsevol commented 5 months ago

Description When I run go get github.com/smartcontractkit/chainlink/core/scripts/common or GOPATH=$(pwd) GO111MODULE=auto go get -v github.com/smartcontractkit/chainlink/core/scripts/common

I get

go: github.com/smartcontractkit/chainlink/core/scripts/common imports github.com/smartcontractkit/chainlink/v2/core/gethwrappers/generated/link_token_interface: github.com/smartcontractkit/chainlink/v2@v2.0.0-00010101000000-000000000000: invalid version: unknown revision 000000000000 go: github.com/smartcontractkit/chainlink/core/scripts/common imports github.com/smartcontractkit/chainlink/v2/core/gethwrappers/generated/mock_v3_aggregator_contract: github.com/smartcontractkit/chainlink/v2@v2.0.0-00010101000000-000000000000: invalid version: unknown revision 000000000000

Your Environment Ubuntu 20.04 go1.22.2.linux-amd64.tar.gz [replace this line with basic information about your environment, such as your operating system and the versions of any relevant tools you are using (e.g. Go, Docker)]

Steps to Reproduce I try to run simple script that imports "github.com/smartcontractkit/chainlink/core/scripts/common"

I do: go mod init simplemod go mod tidy go get github.com/smartcontractkit/chainlink/core/scripts/common And here I get the error. I also tried to install the package with GO111MODULE=off GOPATH=$(pwd) GO111MODULE=auto go get -v github.com/smartcontractkit/chainlink/core/scripts/common and I get the same error.

Additional Information [replace this line with any additional information you would like to provide, such as screenshots illustrating the issue]

QingyangKong commented 5 months ago

Hi @andriykutsevol , what is your purpose in running command go get github.com/smartcontractkit/chainlink/core/scripts/common

andriykutsevol commented 5 months ago

Hello @QingyangKong thanks for your reply. I'm geting this error with just "go mod tidy" also.

I prepared clean GOPATH.

My settings in .bashrc

export GOROOT=/home/andriy/GoRoot/1.22.2/goroot export PATH=$PATH:$GOROOT/bin

Then I run my set_gopath.sh

curdir=pwd gopath=${curdir}/GOPATH go env -w GOPATH=${gopath} go env -w GO111MODULE=on

My main.go

package main import ( "errors" helpers "github.com/smartcontractkit/chainlink/core/scripts/common" ) func main() { err := errors.New("This is a new error") helpers.PanicErr(err) }

Then I do go mod init simplemod go mod tidy

And I get that error.

Also there is some other errors:

github.com/gogo/protobuf/proto: reading github.com/gogo/protobuf/go.mod at revision v1.3.3: unknown revision v1.3.3 github.com/gogo/protobuf/types: reading github.com/gogo/protobuf/go.mod at revision v1.3.3: unknown revision v1.3.3 github.com/gogo/protobuf/gogoproto: reading github.com/gogo/protobuf/go.mod at revision v1.3.3: unknown revision v1.3.3