浏览代码

build: fix compile pass

Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
Gyuho Lee 7 年之前
父节点
当前提交
e1001f9349
共有 1 个文件被更改,包括 13 次插入14 次删除
  1. 13 14
      build

+ 13 - 14
build

@@ -64,21 +64,20 @@ etcd_build() {
 tools_build() {
 	out="bin"
 	if [ -n "${BINDIR}" ]; then out="${BINDIR}"; fi
-	# shellcheck disable=SC2039
-	tools=(
-		benchmark
-		etcd-dump-db
-		etcd-dump-logs
-		functional-tester/etcd-agent
-		functional-tester/etcd-tester
-		functional-tester/etcd-runner
-		local-tester/bridge
-	)
-	# shellcheck disable=SC2039
-	for tool in "${tools[@]}"
+	tools_path="benchmark
+	etcd-dump-db
+	etcd-dump-logs
+	functional-tester/etcd-agent
+	functional-tester/etcd-tester
+	functional-tester/etcd-runner
+	local-tester/bridge"
+	for tool in ${tools_path}
 	do
-		# shellcheck disable=SC2086
-		CGO_ENABLED=0 go build $GO_BUILD_FLAGS -installsuffix cgo -ldflags "$GO_LDFLAGS" -o "${out}/${tool}" "${REPO_PATH}/tools/${tool}" || return
+		echo "Building" "'${tool}'"...
+		CGO_ENABLED=0 go build ${GO_BUILD_FLAGS} \
+		  -installsuffix cgo \
+		  -ldflags "${GO_LDFLAGS}" \
+		  -o "${out}/${tool}" "${REPO_PATH}/tools/${tool}" || return
 	done
 }