smartcontractkit / smartcontractkit/chainlink

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

Open
#12,731 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Go
Stars
8.2k
Forks
2k
Avg merge
1d 23h
Merged PRs (30d)
202

Description

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]

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the failure with go mod init, go mod tidy, and go get github.com/smartcontractkit/chainlink/core/scripts/common; the reported dependency comes through core/scripts/common and generated geth wrappers under chainlink/v2. Trace why Go resolves chainlink/v2 to revision 000000000000, then verify that the import installs successfully without the invalid-version error.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
build-system
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.