From d5ab1c0ba0f6cdfb0f26151078e9aa4cfc3f904e Mon Sep 17 00:00:00 2001 From: Evan Lezar <7723350-elezar@users.noreply.gitlab.com> Date: Mon, 20 Feb 2023 08:29:44 +0000 Subject: [PATCH] Merge branch 'fix-nvidia-ctk-path' into 'main' Ensure that generate uses a consistent nvidia-ctk path See merge request nvidia/container-toolkit/container-toolkit!301 --- cmd/nvidia-ctk/cdi/generate/generate.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cmd/nvidia-ctk/cdi/generate/generate.go b/cmd/nvidia-ctk/cdi/generate/generate.go index 66fc32dd..79a1cf6e 100644 --- a/cmd/nvidia-ctk/cdi/generate/generate.go +++ b/cmd/nvidia-ctk/cdi/generate/generate.go @@ -122,6 +122,8 @@ func (m command) validateFlags(r *cli.Context, cfg *config) error { return err } + cfg.nvidiaCTKPath = discover.FindNvidiaCTK(m.logger, cfg.nvidiaCTKPath) + return nil }