Skip to content

Commit 211aeba

Browse files
committed
fix(cmd/rofl): Clear any previously set errors for Docker env
This could previously cause an incorrect error to be propagated when the host did not have the given binary installed.
1 parent 151c60d commit 211aeba

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

build/env/env.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ func (de *DockerEnv) AddDirectory(path string) {
100100

101101
// WrapCommand implements ExecEnv.
102102
func (de *DockerEnv) WrapCommand(cmd *exec.Cmd) error {
103+
cmd.Err = nil // May be set by a previous exec.Command invocation.
103104
origArgs := cmd.Args
104105

105106
var err error

0 commit comments

Comments
 (0)