[arvados] updated: 2.7.0-5375-g1f7aeab703

git repository hosting git at public.arvados.org
Thu Nov 16 07:10:01 UTC 2023


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

       via  1f7aeab7038ed8e2aa0f824185b392c8c13e6623 (commit)
      from  9fa5faed898bf23fcea8f4e7946e540473e42e08 (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 1f7aeab7038ed8e2aa0f824185b392c8c13e6623
Author: Tom Clegg <tom at curii.com>
Date:   Thu Nov 16 02:09:31 2023 -0500

    20846: Exit 2 on invalid argument.
    
    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 33e591f95b..814c0586e6 100644
--- a/lib/install/deps.go
+++ b/lib/install/deps.go
@@ -121,19 +121,19 @@ func (inst *installCommand) RunCommand(prog string, args []string, stdin io.Read
 
 	if ok, _ := regexp.MatchString(`^\d\.\d+\.\d+$`, inst.RubyVersion); !ok {
 		fmt.Fprintf(stderr, "invalid argument %q for -ruby-version\n", inst.RubyVersion)
-		return 64
+		return 2
 	}
 	if ok, _ := regexp.MatchString(`^\d`, inst.BundlerVersion); !ok {
 		fmt.Fprintf(stderr, "invalid argument %q for -bundler-version\n", inst.BundlerVersion)
-		return 64
+		return 2
 	}
 	if ok, _ := regexp.MatchString(`^\d`, inst.SingularityVersion); !ok {
 		fmt.Fprintf(stderr, "invalid argument %q for -singularity-version\n", inst.SingularityVersion)
-		return 64
+		return 2
 	}
 	if ok, _ := regexp.MatchString(`^v\d`, inst.NodejsVersion); !ok {
 		fmt.Fprintf(stderr, "invalid argument %q for -nodejs-version\n", inst.NodejsVersion)
-		return 64
+		return 2
 	}
 
 	osv, err := identifyOS()

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


hooks/post-receive
-- 




More information about the arvados-commits mailing list