Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
andriykutsevol opened this issue Apr 6, 2024 · 2 comments

Comments

@andriykutsevol
Copy link

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
Copy link
Collaborator

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

@andriykutsevol
Copy link
Author

andriykutsevol commented Apr 7, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants