Add missing print directive, fix go.mod

This commit is contained in:
Frederik Ring 2022-02-23 10:12:57 +01:00
parent 2a17e84ab6
commit 9155b4d130
2 changed files with 2 additions and 2 deletions

View File

@ -87,7 +87,7 @@ func (s *script) runLabeledCommands(label string) error {
Filters: filters.NewArgs(f...), Filters: filters.NewArgs(f...),
}) })
if err != nil { if err != nil {
return fmt.Errorf("runLabeledCommands: error querying for containers", err) return fmt.Errorf("runLabeledCommands: error querying for containers: %w", err)
} }
if len(containersWithCommand) == 0 { if len(containersWithCommand) == 0 {

2
go.mod
View File

@ -4,6 +4,7 @@ go 1.17
require ( require (
github.com/containrrr/shoutrrr v0.5.2 github.com/containrrr/shoutrrr v0.5.2
github.com/cosiner/argv v0.1.0
github.com/docker/docker v20.10.11+incompatible github.com/docker/docker v20.10.11+incompatible
github.com/gofrs/flock v0.8.1 github.com/gofrs/flock v0.8.1
github.com/kelseyhightower/envconfig v1.4.0 github.com/kelseyhightower/envconfig v1.4.0
@ -18,7 +19,6 @@ require (
require ( require (
github.com/Microsoft/go-winio v0.4.17 // indirect github.com/Microsoft/go-winio v0.4.17 // indirect
github.com/containerd/containerd v1.5.5 // indirect github.com/containerd/containerd v1.5.5 // indirect
github.com/cosiner/argv v0.1.0 // indirect
github.com/docker/distribution v2.7.1+incompatible // indirect github.com/docker/distribution v2.7.1+incompatible // indirect
github.com/docker/go-connections v0.4.0 // indirect github.com/docker/go-connections v0.4.0 // indirect
github.com/docker/go-units v0.4.0 // indirect github.com/docker/go-units v0.4.0 // indirect