Open cringdahl opened 3 months ago
It should be a known issue. It doesn't work because the go.mod file contains replace
directive. Refer to https://go.dev/ref/mod#go-install.
$ go install go.etcd.io/etcd/etcdctl/v3@v3.5.15
go: go.etcd.io/etcd/etcdctl/v3@v3.5.15 (in go.etcd.io/etcd/etcdctl/v3@v3.5.15):
The go.mod file for the module providing named packages contains one or
more replace directives. It must not contain directives that would cause
it to be interpreted differently than if it were the main module.
After we switch to go workspace, it should can resolve this. @ivanvc
/triaged
/triaged-accepted
/triage-accepted
We were testing the prow to see if it would add the stage/triaged
label :sweat_smile:.
Discussed during our fortnightly triage meeting. This issue will likely be closed by implementing the Go workspace for v3.6. As per backporting this into v3.5, we're far from confirming whether we'll do it. We'll keep this issue in the meanwhile.
Bug report criteria
What happened?
When running
go install go.etcd.io/etcd/etcdctl@v3
, go successfully finds upstream module dependencies, until it doesn't. It seems to be a dependency for v2, which is included by default.What did you expect to happen?
I expected
go install go.etcd.io/etcd/etcdctl@v3
to install etcdctl.How can we reproduce it (as minimally and precisely as possible)?
Run
go install go.etcd.io/etcd/etcdctl@v3
. I ran into this on macOS 14.6.1 with go1.23.0, and tested again on an ubuntu:latest container running go1.22.2Anything else we need to know?
No response
Etcd version (please run commands below)
N/A, etcd not installed
Etcd configuration (command line flags or environment variables)
N/A, etcd not installed
Etcd debug information (please run commands below, feel free to obfuscate the IP address or FQDN in the output)
N/A, etcd not installed
Relevant log output
No response