summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGabriel Russell <gabriel.russell@mongodb.com>2017-03-09 11:03:18 -0500
committerGabriel Russell <gabriel.russell@mongodb.com>2017-05-01 15:47:00 -0400
commit8f6ff3212b128efd1ff746cabfd5e1f36761fdd7 (patch)
tree042ff756e0904da77b8762a0a66a90441a0bec93
parente624205252429cc6b629dd3f03b90db957454bd6 (diff)
downloadmongo-8f6ff3212b128efd1ff746cabfd5e1f36761fdd7.tar.gz
TOOLS-1596 set version before setting gopath
On windows when we set up the gopath, we copy the source tree in the directory that we will build from. This means that if we want to modify the source code with a version, we need to do it before we copy the files.
-rw-r--r--etc/evergreen.yml4
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/evergreen.yml b/etc/evergreen.yml
index 59646a3be5e..9d9b79123b8 100644
--- a/etc/evergreen.yml
+++ b/etc/evergreen.yml
@@ -389,11 +389,11 @@ functions:
set -o igncr
fi;
- . ./${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
+ . ./${set_tools_gopath|set_gopath.sh}
+
build_tools="bsondump mongostat mongofiles mongoexport mongoimport mongorestore mongodump mongotop mongooplog"
if [ "${build_mongoreplay}" = "true" ]; then