Skip to content

Commit

Permalink
fix build errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Your Name committed Nov 8, 2019
1 parent d63ddf4 commit cf1d30c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions hack/build-image.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ fi

go get github.com/mitchellh/gox

cd $GOPATH/src/$API_GO_PACKAGE/tapp-controller
cd $GOPATH/src/$API_GO_PACKAGE/tapp
CGO_ENABLED=0 gox -osarch="linux/amd64" -ldflags "$(api::version::ldflags)" \
-output=$BIN
docker build build/docker/ -t tappcontroller:v1.0.0
rm $BIN
rm $BIN
2 changes: 1 addition & 1 deletion hack/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ else
api::version::save_version_vars "${GIT_VERSION_FILE}"
fi

cd $GOPATH/src/$API_GO_PACKAGE/tapp-controller
cd $GOPATH/src/$API_GO_PACKAGE/tapp
go build -o bin/tapp-controller -ldflags "$(api::version::ldflags)" .
if [ $? -eq 0 ]; then
echo "Build success!"
Expand Down
2 changes: 1 addition & 1 deletion hack/lib/golang.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash

readonly API_GO_PACKAGE=git.tencent.com/tke
readonly API_GO_PACKAGE=tkestack.io
readonly API_GOPATH="${ROOT}/go"

0 comments on commit cf1d30c

Please sign in to comment.