etcd-io / etcd

Distributed reliable key-value store for the most critical data of a distributed system
https://etcd.io
Apache License 2.0
47.89k stars 9.78k forks source link

why etcd serving as a standard go-module project failed to run "./build.sh" in root path #18906

Closed pikehuang closed 4 days ago

pikehuang commented 4 days ago

Bug report criteria

What happened?

when run ./build.sh in etcd root directory, it failed and gave error: must be run from 'go.etcd.io/etcd/v3' module directory

the etcd project is cloned from github and didn't have any modification.

What did you expect to happen?

./build.sh run success at one shot

How can we reproduce it (as minimally and precisely as possible)?

step 1: git clone https://github.com/etcd-io/etcd.git git checkout release-3.5

step 2: cd etcd ./build.sh then errors: must be run from 'go.etcd.io/etcd/v3' module directory

Anything else we need to know?

env: x86_64 GNU/Linux

Etcd version (please run commands below)

```console $ etcd --version # paste output here $ etcdctl version # paste output here ``` nothing relevant to etcd and etcdctl, just the start up of building ectcd binary from etcd repo is not fluently.

Etcd configuration (command line flags or environment variables)

# paste your configuration here

Etcd debug information (please run commands below, feel free to obfuscate the IP address or FQDN in the output)

```console $ etcdctl member list -w table # paste output here $ etcdctl --endpoints= endpoint status -w table # paste output here ```

Relevant log output

No response

ivanvc commented 4 days ago

Hi @pikehuang, thanks for raising this issue. I'll convert this into a discussion so we can gather more information and confirm if a bug is present.