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()