"no required module provides package" Displayed When Compiling etcd
Symptom
The error message "no required module provides package github.com/coreos/etcd/cmd/etcd: go.mod file not found" is displayed during etcd compilation.

Key Process and Cause Analysis
The GO111MODULE module is not enabled.
Conclusion and Solution
- Enable the GO111MODULE module.
go env -w GO111MODULE=auto
- Compile etcd again.
./build
Parent topic: Troubleshooting