Skip to content

Commit 2c5761d

Browse files
author
Evan Lezar
committed
Merge branch 'bug-fixes' into 'main'
Minor fixes and cleanups See merge request nvidia/container-toolkit/container-toolkit!449
2 parents a564b38 + 3c9d95c commit 2c5761d

File tree

5 files changed

+7
-9
lines changed

5 files changed

+7
-9
lines changed

cmd/nvidia-ctk/cdi/generate/generate.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ func (m command) build() *cli.Command {
130130
},
131131
&cli.StringSliceFlag{
132132
Name: "csv.file",
133-
Usage: "The path to the list of CSV files to use when generating the CDI specification in CDI mode.",
133+
Usage: "The path to the list of CSV files to use when generating the CDI specification in CSV mode.",
134134
Value: cli.NewStringSlice(csv.DefaultFileList()...),
135135
Destination: &opts.csv.files,
136136
},

go.sum

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@ github.com/NVIDIA/go-nvml v0.12.0-1 h1:6mdjtlFo+17dWL7VFPfuRMtf0061TF4DKls9pkSw6
55
github.com/NVIDIA/go-nvml v0.12.0-1/go.mod h1:hy7HYeQy335x6nEss0Ne3PYqleRa6Ct+VKD9RQ4nyFs=
66
github.com/blang/semver/v4 v4.0.0 h1:1PFHFE6yCCTv8C1TeyNNarDzntLi7wMI5i/pzqYIsAM=
77
github.com/blang/semver/v4 v4.0.0/go.mod h1:IbckMUScFkM3pff0VJDNKRiT6TG/YpiHIM2yvyW5YoQ=
8-
github.com/container-orchestrated-devices/container-device-interface v0.5.4-0.20230111111500-5b3b5d81179a h1:sP3PcgyIkRlHqfF3Jfpe/7G8kf/qpzG4C8r94y9hLbE=
9-
github.com/container-orchestrated-devices/container-device-interface v0.5.4-0.20230111111500-5b3b5d81179a/go.mod h1:xMRa4fJgXzSDFUCURSimOUgoSc+odohvO3uXT9xjqH0=
108
github.com/container-orchestrated-devices/container-device-interface v0.6.0 h1:aWwcz/Ep0Fd7ZuBjQGjU/jdPloM7ydhMW13h85jZNvk=
119
github.com/container-orchestrated-devices/container-device-interface v0.6.0/go.mod h1:OQlgtJtDrOxSQ1BWODC8OZK1tzi9W69wek+Jy17ndzo=
1210
github.com/cpuguy83/go-md2man/v2 v2.0.0-20190314233015-f79a8a8ca69d/go.mod h1:maD7wRr/U5Z6m/iR4s+kqSMx2CaBsrgA7czyZG/E6dU=

internal/info/auto.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ package info
1919
import (
2020
"github.com/NVIDIA/nvidia-container-toolkit/internal/config/image"
2121
"github.com/NVIDIA/nvidia-container-toolkit/internal/logger"
22-
"github.com/container-orchestrated-devices/container-device-interface/pkg/cdi"
22+
cdi "github.com/container-orchestrated-devices/container-device-interface/pkg/parser"
2323
"gitlab.com/nvidia/cloud-native/go-nvlib/pkg/nvlib/info"
2424
)
2525

internal/modifier/cdi.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ import (
2424
"github.com/NVIDIA/nvidia-container-toolkit/internal/config/image"
2525
"github.com/NVIDIA/nvidia-container-toolkit/internal/logger"
2626
"github.com/NVIDIA/nvidia-container-toolkit/internal/oci"
27-
cdi "github.com/container-orchestrated-devices/container-device-interface/pkg/cdi"
27+
"github.com/container-orchestrated-devices/container-device-interface/pkg/cdi"
2828
"github.com/opencontainers/runtime-spec/specs-go"
2929
)
3030

internal/runtime/runtime_factory.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ func newNVIDIAContainerRuntime(logger logger.Interface, cfg *config.Config, argv
4444
return nil, fmt.Errorf("error constructing OCI specification: %v", err)
4545
}
4646

47-
specModifier, err := newSpecModifier(logger, cfg, ociSpec, argv)
47+
specModifier, err := newSpecModifier(logger, cfg, ociSpec)
4848
if err != nil {
4949
return nil, fmt.Errorf("failed to construct OCI spec modifier: %v", err)
5050
}
@@ -61,7 +61,7 @@ func newNVIDIAContainerRuntime(logger logger.Interface, cfg *config.Config, argv
6161
}
6262

6363
// newSpecModifier is a factory method that creates constructs an OCI spec modifer based on the provided config.
64-
func newSpecModifier(logger logger.Interface, cfg *config.Config, ociSpec oci.Spec, argv []string) (oci.SpecModifier, error) {
64+
func newSpecModifier(logger logger.Interface, cfg *config.Config, ociSpec oci.Spec) (oci.SpecModifier, error) {
6565
rawSpec, err := ociSpec.Load()
6666
if err != nil {
6767
return nil, fmt.Errorf("failed to load OCI spec: %v", err)
@@ -73,7 +73,7 @@ func newSpecModifier(logger logger.Interface, cfg *config.Config, ociSpec oci.Sp
7373
}
7474

7575
mode := info.ResolveAutoMode(logger, cfg.NVIDIAContainerRuntimeConfig.Mode, image)
76-
modeModifier, err := newModeModifier(logger, mode, cfg, ociSpec, argv)
76+
modeModifier, err := newModeModifier(logger, mode, cfg, ociSpec)
7777
if err != nil {
7878
return nil, err
7979
}
@@ -106,7 +106,7 @@ func newSpecModifier(logger logger.Interface, cfg *config.Config, ociSpec oci.Sp
106106
return modifiers, nil
107107
}
108108

109-
func newModeModifier(logger logger.Interface, mode string, cfg *config.Config, ociSpec oci.Spec, argv []string) (oci.SpecModifier, error) {
109+
func newModeModifier(logger logger.Interface, mode string, cfg *config.Config, ociSpec oci.Spec) (oci.SpecModifier, error) {
110110
switch mode {
111111
case "legacy":
112112
return modifier.NewStableRuntimeModifier(logger, cfg.NVIDIAContainerRuntimeHookConfig.Path), nil

0 commit comments

Comments
 (0)