diff options
author | Gabriel Russell <gabriel.russell@mongodb.com> | 2016-08-11 15:02:53 -0400 |
---|---|---|
committer | Gabriel Russell <gabriel.russell@mongodb.com> | 2016-08-25 17:51:35 -0400 |
commit | 733969dbd5f02eddbf4623c20b92c7681f046c97 (patch) | |
tree | 9c6566a0be878870ea0cf6fb4f2b93b49f57ad4b | |
parent | bc3f6f075b52307eb5ad5ff62f18e19634c36cd6 (diff) | |
download | mongo-733969dbd5f02eddbf4623c20b92c7681f046c97.tar.gz |
TOOLS-1268 don't use -X to set version
-rw-r--r-- | etc/evergreen.yml | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/etc/evergreen.yml b/etc/evergreen.yml index e8558f93a9f..822e0108c42 100644 --- a/etc/evergreen.yml +++ b/etc/evergreen.yml @@ -220,9 +220,12 @@ functions: . ./${set_tools_gopath|set_gopath.sh} + sed -i.bak "s/built-without-version-string/$(git describe)/" common/options/options.go + sed -i.bak "s/built-without-git-spec/$(git rev-parse HEAD)/" common/options/options.go + for i in bsondump mongostat mongofiles mongoexport mongoimport mongorestore mongodump mongotop mongooplog; do - ${gorootvars} go build -ldflags "-X github.com/mongodb/mongo-tools/common/options.Gitspec $(git rev-parse HEAD) -X github.com/mongodb/mongo-tools/common/options.VersionStr $(git --git-dir ../.git describe)" ${tooltags|} -o "../src/mongo-tools/$i${exe|}" $i/main/$i.go - echo $i; + ${gorootvars} go build ${tooltags|} -o "../src/mongo-tools/$i${exe|}" $i/main/$i.go + "../src/mongo-tools/$i${exe|}" --version done "do setup" : |