environment
- mac
- go version go1.19.4 darwin/amd64
Step where the error occurred
After using git clone
the command to pull the remote warehouse to the local, make install
the command appears:
致命错误:在 '/Users/xxx/xxx/irita' 检测到可疑的仓库所有权
要为本仓库创建特例,请运行:
git config --global --add safe.directory /Users/janel/project/irita
致命错误:在 '/Users/xxx/xxx/irita' 检测到可疑的仓库所有权
要为本仓库创建特例,请运行:
git config --global --add safe.directory /Users/xxx/xxx/irita
go install -tags "netgo ledger" -ldflags '-X github.com/cosmos/cosmos-sdk/version.Name=irita -X github.com/cosmos/cosmos-sdk/version.AppName=irita -X github.com/cosmos/cosmos-sdk/version.Version= -X github.com/cosmos/cosmos-sdk/version.Commit= -X "github.com/cosmos/cosmos-sdk/version.BuildTags=netgo,ledger" -X github.com/tendermint/tendermint/crypto/algo.Algo=sm2 -X github.com/bianjieai/irita/address.Bech32ChainPrefix=i -X github.com/bianjieai/irita/address.PrefixAcc=a -X github.com/bianjieai/irita/address.PrefixAddress=a -X github.com/tharsis/ethermint/types.EvmChainID=1223' ./cmd/irita
error obtaining VCS status: exit status 128
Use -buildvcs=false to disable VCS
Solution
1. Run the command according to the instructions
According to the error message displayed on the terminal, it is a permission problem of the warehouse.
git config --global --add safe.directory /Users/xxx/xxx/irita
After running the command according to the instructions, this problem can be solved.
There is also an explanation of this issue on GitHub: Running git as repo owner. #3284
2. Solved this problem by changing the go version
An explanation of this problem on GitHub: error obtaining VCS status: exit status 128 #3273