From 73a5b70a02ec4e1481880526d1219f64c501ccd9 Mon Sep 17 00:00:00 2001 From: Evan Lezar Date: Fri, 20 May 2022 14:17:08 +0200 Subject: [PATCH 1/2] Return default config if config path is not found Signed-off-by: Evan Lezar --- CHANGELOG.md | 1 + internal/config/config.go | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 06f92232..48299b19 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,7 @@ ## v1.10.0-rc.3 +* Use default config instead of raising an error if config file cannot be found * Ignore NVIDIA_REQUIRE_JETPACK* environment variables for requirement checks * Fix bug in detection of Tegra systems where `/sys/devices/soc0/family` is ignored * Fix bug where links to devices were detected as devices diff --git a/internal/config/config.go b/internal/config/config.go index cee6de70..6adc604e 100644 --- a/internal/config/config.go +++ b/internal/config/config.go @@ -61,7 +61,7 @@ func GetConfig() (*Config, error) { tomlFile, err := os.Open(configFilePath) if err != nil { - return nil, fmt.Errorf("failed to open config file %v: %v", configFilePath, err) + return getDefaultConfig(), nil } defer tomlFile.Close() From 840cdec36d33e76c366e0f2ba33f2a06a556f366 Mon Sep 17 00:00:00 2001 From: Evan Lezar Date: Wed, 25 May 2022 13:23:21 +0200 Subject: [PATCH 2/2] Update libnvidia-container Signed-off-by: Evan Lezar --- third_party/libnvidia-container | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/third_party/libnvidia-container b/third_party/libnvidia-container index c3f84ed1..1f493e87 160000 --- a/third_party/libnvidia-container +++ b/third_party/libnvidia-container @@ -1 +1 @@ -Subproject commit c3f84ed12f1ccf46be397667bee171b3602ab750 +Subproject commit 1f493e87b89ea5bc6facb730afbfae7ab6f63b5f