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-11 15:35:38 -0400 |
commit | faf837a1e8aa9aead75c55ee28124eed294aef8b (patch) | |
tree | 79f78d29bf42366b0cfacf22ca30dd33f4c2cc64 | |
parent | c44504dd8da96d2260d1f82a72276bc60fc77d8a (diff) | |
download | mongo-faf837a1e8aa9aead75c55ee28124eed294aef8b.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 998bdb09c45..d93ba297a17 100644 --- a/etc/evergreen.yml +++ b/etc/evergreen.yml @@ -312,9 +312,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" : |