mod: Try and update things

No idea why things break. go.mod sucks.
This commit is contained in:
James Shubin
2023-11-27 20:05:01 -05:00
parent e727e7adb6
commit dad3458ece
5 changed files with 175 additions and 55 deletions

View File

@@ -193,7 +193,8 @@ func cleanup() error {
}
if len(l) > 0 {
if err := res.client.ContainerStop(ctx, id, nil); err != nil {
stopOpts := container.StopOptions{}
if err := res.client.ContainerStop(ctx, id, stopOpts); err != nil {
return fmt.Errorf("error stopping container: %s", err)
}
if err := res.client.ContainerRemove(ctx, id, types.ContainerRemoveOptions{}); err != nil {