有人熟悉 etcd 项目吗?或者我们在谈论这个问题时最好忘记这个项目。问题是
$ build
ln: `gopath/src/github.com/coreos/etcd': cannot overwrite directory
当 exec构建外壳和内容是:
#!/bin/sh -e
if [ ! -h gopath/src/github.com/coreos/etcd ]; then
mkdir -p gopath/src/github.com/coreos/
ln -s ../../../.. gopath/src/github.com/coreos/etcd
fi
export GOBIN=${PWD}/bin
export GOPATH=${PWD}/gopath
export GOFMTPATH="./bench ./config ./discovery ./etcd ./error ./http ./log main.go ./metrics ./mod ./server ./store ./tests"
# Don't surprise user by formatting their codes by stealth
if [ "--fmt" = "$1" ]; then
gofmt -s -w -l $GOFMTPATH
fi
go install github.com/coreos/etcd
go install github.com/coreos/etcd/bench
一些补充:我的系统是 Windows 7
我在 git bash 上运行 shell。 问题重现:
step1: open the git bash
step2: git clone git@github.com:coreos/etcd.git
step3: cd etcd
step4: build
跃然一笑
相关分类