mirror of
https://github.com/containers/podman.git
synced 2025-05-17 23:26:08 +08:00
pkg/specgen: fix ST1019 on freebsd
> pkg/specgen/generate/oci_freebsd.go:15:2: ST1019: package "github.com/opencontainers/runtime-spec/specs-go" is being imported more than once (staticcheck) > "github.com/opencontainers/runtime-spec/specs-go" > ^ > pkg/specgen/generate/oci_freebsd.go:16:2: ST1019(related information): other import of "github.com/opencontainers/runtime-spec/specs-go" (staticcheck) > spec "github.com/opencontainers/runtime-spec/specs-go" > ^ Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
This commit is contained in:
@ -12,7 +12,6 @@ import (
|
||||
"github.com/containers/podman/v5/libpod"
|
||||
"github.com/containers/podman/v5/libpod/define"
|
||||
"github.com/containers/podman/v5/pkg/specgen"
|
||||
"github.com/opencontainers/runtime-spec/specs-go"
|
||||
spec "github.com/opencontainers/runtime-spec/specs-go"
|
||||
"github.com/opencontainers/runtime-tools/generate"
|
||||
)
|
||||
@ -175,6 +174,6 @@ func WeightDevices(wtDevices map[string]spec.LinuxWeightDevice) ([]spec.LinuxWei
|
||||
return devs, nil
|
||||
}
|
||||
|
||||
func subNegativeOne(u specs.POSIXRlimit) specs.POSIXRlimit {
|
||||
func subNegativeOne(u spec.POSIXRlimit) spec.POSIXRlimit {
|
||||
return u
|
||||
}
|
||||
|
Reference in New Issue
Block a user