[ARVADOS] updated: 2.1.0-1481-ga85399e0a

Git user git at public.arvados.org
Fri Oct 8 14:38:29 UTC 2021


Summary of changes:
 lib/crunchrun/singularity.go | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

       via  a85399e0a429791d8cc508984b024bba03fdf3f5 (commit)
      from  064a8777267b6918ef040589c0b9d75f8df81cd1 (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 a85399e0a429791d8cc508984b024bba03fdf3f5
Author: Ward Vandewege <ward at curii.com>
Date:   Fri Oct 8 10:38:17 2021 -0400

    18258: add missing error check on os.Mkdir
    
    Arvados-DCO-1.1-Signed-off-by: Ward Vandewege <ward at curii.com>

diff --git a/lib/crunchrun/singularity.go b/lib/crunchrun/singularity.go
index 9828d8734..681dbb6cc 100644
--- a/lib/crunchrun/singularity.go
+++ b/lib/crunchrun/singularity.go
@@ -160,7 +160,10 @@ func (e *singularityExecutor) LoadImage(dockerImageID string, imageTarballPath s
 			return err
 		}
 
-		os.Mkdir(e.tmpdir+"/cache", 0700)
+		err = os.Mkdir(e.tmpdir+"/cache", 0700)
+		if err != nil {
+			return err
+		}
 		defer os.RemoveAll(e.tmpdir + "/cache")
 
 		build := exec.Command("singularity", "build", imageFilename, "docker-archive://"+e.tmpdir+"/image.tar")

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


hooks/post-receive
-- 




More information about the arvados-commits mailing list