chore(deps): update go version to 1.18 (#1363)

Co-authored-by: nils måsén <nils@piksel.se>
This commit is contained in:
Jauder Ho 2022-09-04 04:56:29 -07:00 committed by GitHub
parent 964879d228
commit e04a107694
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 60 additions and 334 deletions

View file

@ -454,7 +454,7 @@ func (client dockerClient) waitForExecOrTimeout(bg context.Context, ID string, e
if err != nil {
return false, err
}
if execInspect.Running == true {
if execInspect.Running {
time.Sleep(1 * time.Second)
continue
}
@ -467,7 +467,7 @@ func (client dockerClient) waitForExecOrTimeout(bg context.Context, ID string, e
}
if execInspect.ExitCode > 0 {
return false, fmt.Errorf("Command exited with code %v %s", execInspect.ExitCode, execOutput)
return false, fmt.Errorf("command exited with code %v %s", execInspect.ExitCode, execOutput)
}
break
}

View file

@ -4,5 +4,4 @@ import "errors"
var errorNoImageInfo = errors.New("no available image info")
var errorNoContainerInfo = errors.New("no available container info")
var errorNoExposedPorts = errors.New("exposed ports does not match port bindings")
var errorInvalidConfig = errors.New("container configuration missing or invalid")