Rate This Document
Findability
Accuracy
Completeness
Readability

"Needed a single revision" Displayed When Compiling etcd

Symptom

The error message "fatal: Needed a single revision" is displayed during etcd compilation.

Key Process and Cause Analysis

During the etcd compilation, the local code is compared with the remote code. When the build script is executed, it stops.

Conclusion and Solution

  1. Modify the build script. Go to the etcd-3.1.20 directory.
    cd etcd-3.1.20
  2. Open the build file.
    vim build
  3. Press i to enter the insert mode and comment out lines 9 to 12.

  4. Press Esc, type :wq!, and press Enter to save the file and exit.
  5. Compile etcd again.
    ./build