Explorar el Código

Capture "command failure" while reading Dockerfiles for FROM lines

Tianon Gravi hace 9 años
padre
commit
b22c1ebbbc
Se han modificado 1 ficheros con 4 adiciones y 0 borrados
  1. 4 0
      bashbrew/go/src/bashbrew/docker.go

+ 4 - 0
bashbrew/go/src/bashbrew/docker.go

@@ -45,6 +45,10 @@ func (r Repo) DockerFrom(entry *manifest.Manifest2822Entry) (string, error) {
 		return "", err
 	}
 
+	if err := dockerfile.Close(); err != nil {
+		return "", err
+	}
+
 	// make sure to add ":latest" if it's implied
 	from = latestizeRepoTag(from)