When calculating the version of our Go and Rails deb/rpm packages, take
authorWard Vandewege <ward@curii.com>
Fri, 16 Oct 2020 01:23:38 +0000 (21:23 -0400)
committerWard Vandewege <ward@curii.com>
Fri, 16 Oct 2020 01:23:38 +0000 (21:23 -0400)
the 'build' directory into account.

refs #17011

Arvados-DCO-1.1-Signed-off-by: Ward Vandewege <ward@curii.com>

build/run-library.sh

index 74475c24218c54e17d38262c7614370555d9e203..bd4d1aeb1f65ac00d0594ea15f9ae7bba3f13063 100755 (executable)
@@ -130,9 +130,9 @@ calculate_go_package_version() {
       checkdirs+=("$1")
       shift
   done
-  if grep -qr git.arvados.org/arvados .; then
-      checkdirs+=(sdk/go lib)
-  fi
+  # Even our rails packages (version calculation happens here!) depend on a go component (arvados-server)
+  # Everything depends on the build directory.
+  checkdirs+=(sdk/go lib build)
   local timestamp=0
   for dir in ${checkdirs[@]}; do
       cd "$WORKSPACE"