diff options
author | Paul Holzinger <pholzing@redhat.com> | 2024-08-14 13:14:02 +0200 |
---|---|---|
committer | Paul Holzinger <pholzing@redhat.com> | 2024-08-19 11:41:28 +0200 |
commit | c17daf2b09402ec02910fa2f63a5dda64b97fcbb (patch) | |
tree | a4026c3e4a42a586c8760bec414fc8b407b85502 /cmd | |
parent | 5f069d874297358f629454a2a4a0b96c15a81836 (diff) |
update golangci-lint to 1.60.1
Fixes new spotted issues around printf() formats and using os.Setenv()
in tests.
Signed-off-by: Paul Holzinger <pholzing@redhat.com>
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/podman/containers/create.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/podman/containers/create.go b/cmd/podman/containers/create.go index 5edeb2afa..15e714b34 100644 --- a/cmd/podman/containers/create.go +++ b/cmd/podman/containers/create.go @@ -314,7 +314,7 @@ func CreateInit(c *cobra.Command, vals entities.ContainerCreateOptions, isInfra vals.ShmSizeSystemd = c.Flag("shm-size-systemd").Value.String() } if (c.Flag("dns").Changed || c.Flag("dns-option").Changed || c.Flag("dns-search").Changed) && vals.Net != nil && (vals.Net.Network.NSMode == specgen.NoNetwork || vals.Net.Network.IsContainer()) { - return vals, fmt.Errorf("conflicting options: dns and the network mode: " + string(vals.Net.Network.NSMode)) + return vals, errors.New("conflicting options: dns and the network mode: " + string(vals.Net.Network.NSMode)) } noHosts, err := c.Flags().GetBool("no-hosts") if err != nil { |