[arvados] updated: 2.7.0-5077-g1a1adf32d7

git repository hosting git at public.arvados.org
Tue Oct 24 18:50:55 UTC 2023


Summary of changes:
 lib/install/deps.go | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

       via  1a1adf32d7b12322f3ab3bf5b0ddd3bd55d061d7 (commit)
      from  4fd40fe19bb3837efe50971b5d9359b0c1c87c93 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.


commit 1a1adf32d7b12322f3ab3bf5b0ddd3bd55d061d7
Author: Tom Clegg <tom at curii.com>
Date:   Tue Oct 24 14:50:02 2023 -0400

    Fix `go install` error on source tree permission.
    
    refs #20846
    
    Arvados-DCO-1.1-Signed-off-by: Tom Clegg <tom at curii.com>

diff --git a/lib/install/deps.go b/lib/install/deps.go
index c4f104f30a..62438645ff 100644
--- a/lib/install/deps.go
+++ b/lib/install/deps.go
@@ -557,7 +557,13 @@ ln -sfv /var/lib/arvados/node-`+nodejsversion+`-linux-x64/bin/{yarn,yarnpkg} /us
 			"cmd/arvados-server",
 		} {
 			fmt.Fprintf(stderr, "building %s...\n", srcdir)
-			cmd := exec.Command("go", "install", "-ldflags", "-X git.arvados.org/arvados.git/lib/cmd.version="+inst.PackageVersion+" -X main.version="+inst.PackageVersion+" -s -w")
+			// -buildvcs=false here avoids a fatal "error
+			// obtaining VCS status" when git refuses to
+			// run (for example) as root in a docker
+			// container using a non-root-owned git tree
+			// mounted from the host -- as in
+			// "arvados-package build".
+			cmd := exec.Command("go", "install", "-buildvcs=false", "-ldflags", "-X git.arvados.org/arvados.git/lib/cmd.version="+inst.PackageVersion+" -X main.version="+inst.PackageVersion+" -s -w")
 			cmd.Env = append(cmd.Env, os.Environ()...)
 			cmd.Env = append(cmd.Env, "GOBIN=/var/lib/arvados/bin")
 			cmd.Dir = filepath.Join(inst.SourcePath, srcdir)

-----------------------------------------------------------------------


hooks/post-receive
-- 




More information about the arvados-commits mailing list