make linux-386 過程中調用 Git 獲取版本信息,但倉庫缺少子模塊或未檢出具體提交,導致 Git 無法確定單一 revision。
git clone --recurse-submodules https://github.com/getlantern/lantern.gitgit submodule update --init --recursivegit checkout v5.8.0 # 或具體 commit hashdnf install golang 或 官網下載。cd lantern
git describe --tags --always # 應輸出版本如 v5.8.0-12-gabc1234
make linux-386
StackOverflow 同款問題:Git needed a single revision error