10666: Updated build script to pass the version number to go programs.
authorLucas Di Pentima <ldipentima@veritasgenetics.com>
Mon, 4 Dec 2017 15:14:48 +0000 (12:14 -0300)
committerLucas Di Pentima <ldipentima@veritasgenetics.com>
Mon, 4 Dec 2017 15:14:48 +0000 (12:14 -0300)
Arvados-DCO-1.1-Signed-off-by: Lucas Di Pentima <ldipentima@veritasgenetics.com>

build/run-library.sh

index 5fc494cdf5aad3608cd1f7b7eafb2c5bd19035d0..029fefc9bb3880fb9643e15ee108e6692c0211f0 100755 (executable)
@@ -132,7 +132,7 @@ package_go_binary() {
       return 1
     fi
 
-    go get "git.curoverse.com/arvados.git/$src_path"
+    go get -ldflags "-X main.version=${version}" "git.curoverse.com/arvados.git/$src_path"
 
     declare -a switches=()
     systemd_unit="$WORKSPACE/${src_path}/${prog}.service"