mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
*: fix failing shellchecks
- shellcheck violations fixed - https://github.com/etcd-io/etcd/issues/17400 Signed-off-by: vivekpatani <9080894+vivekpatani@users.noreply.github.com>
This commit is contained in:
parent
b795a8f662
commit
f4633c845f
12
build.sh
12
build.sh
@ -22,18 +22,18 @@ CGO_ENABLED="${CGO_ENABLED:-0}"
|
|||||||
GO_LDFLAGS=(${GO_LDFLAGS:-} "-X=${VERSION_SYMBOL}=${GIT_SHA}")
|
GO_LDFLAGS=(${GO_LDFLAGS:-} "-X=${VERSION_SYMBOL}=${GIT_SHA}")
|
||||||
GO_BUILD_ENV=("CGO_ENABLED=${CGO_ENABLED}" "GO_BUILD_FLAGS=${GO_BUILD_FLAGS:-}" "GOOS=${GOOS}" "GOARCH=${GOARCH}")
|
GO_BUILD_ENV=("CGO_ENABLED=${CGO_ENABLED}" "GO_BUILD_FLAGS=${GO_BUILD_FLAGS:-}" "GOOS=${GOOS}" "GOARCH=${GOARCH}")
|
||||||
|
|
||||||
GOFAIL_VERSION=$(cd tools/mod && go list -m -f {{.Version}} go.etcd.io/gofail)
|
GOFAIL_VERSION=$(cd tools/mod && go list -m -f '{{.Version}}' go.etcd.io/gofail)
|
||||||
# enable/disable failpoints
|
# enable/disable failpoints
|
||||||
toggle_failpoints() {
|
toggle_failpoints() {
|
||||||
mode="$1"
|
mode="$1"
|
||||||
if command -v gofail >/dev/null 2>&1; then
|
if command -v gofail >/dev/null 2>&1; then
|
||||||
run gofail "$mode" server/etcdserver/ server/mvcc/ server/wal/ server/mvcc/backend/
|
run gofail "$mode" server/etcdserver/ server/mvcc/ server/wal/ server/mvcc/backend/
|
||||||
if [[ "$mode" == "enable" ]]; then
|
if [[ "$mode" == "enable" ]]; then
|
||||||
go get go.etcd.io/gofail@${GOFAIL_VERSION}
|
go get go.etcd.io/gofail@"${GOFAIL_VERSION}"
|
||||||
cd ./server && go get go.etcd.io/gofail@${GOFAIL_VERSION}
|
cd ./server && go get go.etcd.io/gofail@"${GOFAIL_VERSION}"
|
||||||
cd ../etcdutl && go get go.etcd.io/gofail@${GOFAIL_VERSION}
|
cd ../etcdutl && go get go.etcd.io/gofail@"${GOFAIL_VERSION}"
|
||||||
cd ../etcdctl && go get go.etcd.io/gofail@${GOFAIL_VERSION}
|
cd ../etcdctl && go get go.etcd.io/gofail@"${GOFAIL_VERSION}"
|
||||||
cd ../tests && go get go.etcd.io/gofail@${GOFAIL_VERSION}
|
cd ../tests && go get go.etcd.io/gofail@"${GOFAIL_VERSION}"
|
||||||
cd ../
|
cd ../
|
||||||
else
|
else
|
||||||
go mod tidy
|
go mod tidy
|
||||||
|
@ -10,7 +10,7 @@ if [ -z "$1" ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
MARKER_URL=https://storage.googleapis.com/etcd/test-binaries/marker-v0.4.0-x86_64-unknown-linux-gnu
|
MARKER_URL=https://storage.googleapis.com/etcd/test-binaries/marker-v0.4.0-x86_64-unknown-linux-gnu
|
||||||
if [ ${ARCH} == "darwin" ]; then
|
if [ "${ARCH}" == "darwin" ]; then
|
||||||
MARKER_URL=https://storage.googleapis.com/etcd/test-binaries/marker-v0.4.0-x86_64-apple-darwin
|
MARKER_URL=https://storage.googleapis.com/etcd/test-binaries/marker-v0.4.0-x86_64-apple-darwin
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user