projects
/
arvados.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
064a877
)
18258: add missing error check on os.Mkdir
author
Ward Vandewege <ward@curii.com>
Fri, 8 Oct 2021 14:38:17 +0000
(10:38 -0400)
committer
Ward Vandewege <ward@curii.com>
Fri, 8 Oct 2021 14:38:17 +0000
(10:38 -0400)
Arvados-DCO-1.1-Signed-off-by: Ward Vandewege <ward@curii.com>
lib/crunchrun/singularity.go
patch
|
blob
|
history
diff --git
a/lib/crunchrun/singularity.go
b/lib/crunchrun/singularity.go
index 9828d8734e021825e2f64a4846f323ae147b9258..681dbb6cc98803a2c9524a5987860b7f4ac9599b 100644
(file)
--- 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")