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

build error #13795

Closed
wzl521 opened this issue Mar 25, 2024 · 11 comments
Closed

build error #13795

wzl521 opened this issue Mar 25, 2024 · 11 comments
Assignees
Labels
Bug Something isn't working

Comments

@wzl521
Copy link

wzl521 commented Mar 25, 2024

Describe the bug

I keep getting the following error while building the Docker image:

consensus-types/wrapper/metadata.go:6:2: no required module provides package github.com/prysmaticlabs/prysm/v3/proto/prysm/v1alpha1/metadata; to add it:
go get github.com/prysmaticlabs/prysm/v3/proto/prysm/v1alpha1/metadata
#14 ERROR: process "/bin/sh -c cd /prysm && go build -o ./cmd/beacon-chain/beacon-chain ./cmd/beacon-chain" did not complete successfully: exit code: 1

Then I located the line of code where the error occurred, as follows:
image

Conclusion: The package is using a local package, but it keeps trying to download, causing compilation errors. Seeking a solution from experts!

Has this worked before in a previous version?

No response

🔬 Minimal Reproduction

No response

Error

#14 7.065 consensus-types/wrapper/metadata.go:6:2: no required module provides package github.com/prysmaticlabs/prysm/v3/proto/prysm/v1alpha1/metadata; to add it:
#14 7.065 	go get github.com/prysmaticlabs/prysm/v3/proto/prysm/v1alpha1/metadata
#14 ERROR: process "/bin/sh -c cd /prysm && go build -o ./cmd/beacon-chain/beacon-chain ./cmd/beacon-chain" did not complete successfully: exit code: 1
------
 > [builder 4/4] RUN cd /prysm && go build -o ./cmd/beacon-chain/beacon-chain ./cmd/beacon-chain:
6.301 go: downloading github.com/docker/go-units v0.4.0
6.311 go: downloading github.com/godbus/dbus/v5 v5.1.0
6.316 go: downloading github.com/opencontainers/runtime-spec v1.0.2
6.334 go: downloading github.com/go-logr/logr v0.2.1
6.337 go: downloading github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd
6.338 go: downloading github.com/modern-go/reflect2 v1.0.1
6.340 go: downloading github.com/marten-seemann/qtls-go1-18 v0.1.2
6.349 go: downloading sigs.k8s.io/yaml v1.2.0
7.065 consensus-types/wrapper/metadata.go:6:2: no required module provides package github.com/prysmaticlabs/prysm/v3/proto/prysm/v1alpha1/metadata; to add it:
7.065 	go get github.com/prysmaticlabs/prysm/v3/proto/prysm/v1alpha1/metadata

Platform(s)

No response

What version of Prysm are you running? (Which release)

5.0.1

Anything else relevant (validator index / public key)?

No response

@wzl521 wzl521 added the Bug Something isn't working label Mar 25, 2024
@nisdas
Copy link
Member

nisdas commented Mar 25, 2024

Which version of go is this ?

@wzl521
Copy link
Author

wzl521 commented Mar 25, 2024

这是哪个版本的 go?

go 1.21

@nisdas
Copy link
Member

nisdas commented Mar 25, 2024

#14 7.065 consensus-types/wrapper/metadata.go:6:2: no required module provides package github.com/prysmaticlabs/prysm/v3/proto/prysm/v1alpha1/metadata; to add it:
#14 7.065 	go get github.com/prysmaticlabs/prysm/v3/proto/prysm/v1alpha1/metadata

Why are you fetch v3 here ?

@wzl521
Copy link
Author

wzl521 commented Mar 25, 2024

#14 7.065 consensus-types/wrapper/metadata.go:6:2: no required module provides package github.com/prysmaticlabs/prysm/v3/proto/prysm/v1alpha1/metadata; to add it:
#14 7.065 	go get github.com/prysmaticlabs/prysm/v3/proto/prysm/v1alpha1/metadata

Why are you fetch v3 here ?

Previously, I was testing with version 3, but even after switching to version 5, I still encounter the same error.

@wzl521
Copy link
Author

wzl521 commented Mar 25, 2024

#14 7.065 consensus-types/wrapper/metadata.go:6:2: no required module provides package github.com/prysmaticlabs/prysm/v3/proto/prysm/v1alpha1/metadata; to add it:
#14 7.065 	go get github.com/prysmaticlabs/prysm/v3/proto/prysm/v1alpha1/metadata

Why are you fetch v3 here ?

this is v5 error:
#14 11.97 consensus-types/wrapper/metadata.go:6:2: no required module provides package github.com/prysmaticlabs/prysm/v5/proto/prysm/v1alpha1/metadata; to add it:
#14 11.97 go get github.com/prysmaticlabs/prysm/v5/proto/prysm/v1alpha1/metadata
#14 ERROR: process "/bin/sh -c cd /prysm && go build -o ./cmd/beacon-chain/beacon-chain ./cmd/beacon-chain" did not complete successfully: exit code: 1

@nisdas
Copy link
Member

nisdas commented Mar 25, 2024

#14 11.97 go get github.com/prysmaticlabs/prysm/v5/proto/prysm/v1alpha1/metadata

why are you fetching this in the first place ? can you run from the commit you want, with no local changes and simply run this:

/bin/sh -c cd /prysm && go build -o ./cmd/beacon-chain/beacon-chain ./cmd/beacon-chain

@wzl521
Copy link
Author

wzl521 commented Mar 25, 2024

#14 11.97 去获取 github.com/prysmaticlabs/prysm/v5/proto/prysm/v1alpha1/metadata

你为什么首先要获取这个?您可以从您想要的提交运行,无需进行本地更改,只需运行以下命令:

/bin/sh -c cd /prysm && go build -o ./cmd/beacon-chain/beacon-chain ./cmd/beacon-chain

Are you suggesting running this command directly in the editor?

@linear linear bot assigned nisdas Mar 25, 2024
@wzl521
Copy link
Author

wzl521 commented Mar 26, 2024

#14 11.97 go get github.com/prysmaticlabs/prysm/v5/proto/prysm/v1alpha1/metadata

why are you fetching this in the first place ? can you run from the commit you want, with no local changes and simply run this:

/bin/sh -c cd /prysm && go build -o ./cmd/beacon-chain/beacon-chain ./cmd/beacon-chain

image
Why is the toolchain highlighted in red?

@nisdas
Copy link
Member

nisdas commented Mar 26, 2024

Are you suggesting running this command directly in the editor?

I am not sure what you are trying to run, I am just going by your logs. You can ignore the toolchain underlining for now and see if it builds.

@nisdas
Copy link
Member

nisdas commented Mar 26, 2024

It looks like you are running a custom branch of prysm, if that is the case we can't help you much. As far as we know prysm compiles fine for every commit in develop

@nisdas
Copy link
Member

nisdas commented Mar 27, 2024

I will be closing this @wzl521 , unless there is a build step that does not work from a commit in develop .

@nisdas nisdas closed this as completed Mar 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants