disable race detection in build.sh
@@ -8,9 +8,9 @@ eval $(go env)
cmd=${1:-"all"}
-if [ "$GOARCH" == "amd64" ]; then
- RACE="--race"
-fi
+#if [ "$GOARCH" == "amd64" ]; then
+ #RACE="--race"
+#fi
install_deps () {
go get github.com/axw/gocov/gocov
@@ -38,7 +38,8 @@ build_commands () {
for cmd in agent backend; do
echo "Building $cmd for ${GOOS}-${GOARCH}"
out=$(build_binary $GOOS $GOARCH $cmd)
- cp -f ../${out} bin
+ rm -f bin/$(basename $out)
+ cp ${out} bin
done
}
