You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
1.0 KiB
32 lines
1.0 KiB
Index: src/github.com/grafana/metrictank/scripts/build.sh |
|
--- src/github.com/grafana/metrictank/scripts/build.sh.orig 2019-03-10 10:13:44.000000000 +0100 |
|
+++ src/github.com/grafana/metrictank/scripts/build.sh 2019-03-10 10:16:14.449044000 +0100 |
|
@@ -1,4 +1,4 @@ |
|
-#!/bin/bash |
|
+#!/usr/bin/env bash |
|
|
|
set -e |
|
|
|
@@ -6,13 +6,6 @@ |
|
DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd ) |
|
cd ${DIR}/.. |
|
|
|
-# make sure CircleCI gets all tags properly. |
|
-# see https://discuss.circleci.com/t/where-are-my-git-tags/2371 |
|
-# and https://stackoverflow.com/questions/37531605/how-to-test-if-git-repository-is-shallow |
|
-[ -f $(git rev-parse --git-dir)/shallow ] && git fetch --unshallow |
|
- |
|
-source scripts/version-tag.sh |
|
- |
|
BUILDDIR=$(pwd)/build |
|
|
|
# Make dir |
|
@@ -40,7 +33,7 @@ |
|
CGO_ENABLED=1 go build -race -ldflags "-X main.version=$version" -o $BUILDDIR/$bin || fail |
|
else |
|
set -x |
|
- go build -ldflags "-X main.version=$version" -o $BUILDDIR/$bin || fail |
|
+ go build -v -ldflags "-X main.version=$version" -o $BUILDDIR/$bin || fail |
|
fi |
|
set +x |
|
cd ..
|
|
|