diff --git a/cmd/nvidia-cdi-hook/create-symlinks/create-symlinks.go b/cmd/nvidia-cdi-hook/create-symlinks/create-symlinks.go index ea81d5a2c..31553b3f2 100644 --- a/cmd/nvidia-cdi-hook/create-symlinks/create-symlinks.go +++ b/cmd/nvidia-cdi-hook/create-symlinks/create-symlinks.go @@ -133,8 +133,6 @@ func (m command) createLink(containerRootDir string, targetPath string, link str } return m.createSymlinkInRoot(containerRootDir, targetPath, link) - - return nil } // linkExists checks whether the specified link exists. diff --git a/go.mod b/go.mod index 9dc970eea..541dc3ff0 100644 --- a/go.mod +++ b/go.mod @@ -6,6 +6,7 @@ require ( github.com/NVIDIA/go-nvlib v0.9.1-0.20251202135446-d0f42ba016dd github.com/NVIDIA/go-nvml v0.13.0-1.0.20260212130905-92cf8c963449 github.com/containerd/nri v0.11.0 + github.com/cyphar/filepath-securejoin v0.6.1 github.com/google/uuid v1.6.0 github.com/moby/sys/mountinfo v0.7.2 github.com/moby/sys/reexec v0.1.0 @@ -29,7 +30,6 @@ require ( cyphar.com/go-pathrs v0.2.1 // indirect github.com/containerd/log v0.1.0 // indirect github.com/containerd/ttrpc v1.2.7 // indirect - github.com/cyphar/filepath-securejoin v0.6.1 // indirect github.com/davecgh/go-spew v1.1.1 // indirect github.com/fsnotify/fsnotify v1.7.0 // indirect github.com/hashicorp/errwrap v1.1.0 // indirect