mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
fix(build): make build run well
1. remove unnecessary target directory 2. comparison update to run on linux
This commit is contained in:
parent
0a4b6570e1
commit
e624d4ef33
4
build
4
build
@ -7,10 +7,10 @@ fi
|
|||||||
|
|
||||||
export GOBIN=${PWD}/bin
|
export GOBIN=${PWD}/bin
|
||||||
export GOPATH=${PWD}
|
export GOPATH=${PWD}
|
||||||
export GOFMTPATH="./bench ./config ./discovery ./etcd ./error ./http ./log ./machines main.go ./metrics ./mod ./server ./store ./tests"
|
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
|
# Don't surprise user by formatting their codes by stealth
|
||||||
if [ "$1" == "--fmt" ]; then
|
if [ "--fmt" = "$1" ]; then
|
||||||
gofmt -s -w -l $GOFMTPATH
|
gofmt -s -w -l $GOFMTPATH
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user