feat: validate configuration on startup, fail fast on bad config (closes #52) #53
@@ -206,6 +206,7 @@ func (c *Config) ensureStateDirWritable() error {
|
||||
"state_dir", probePath, err)
|
||||
}
|
||||
|
||||
//nolint:gosec // G703: probePath comes from os.CreateTemp inside the just-validated StateDir
|
||||
if err := os.Remove(probePath); err != nil {
|
||||
return fmt.Errorf("config key %q: cannot remove probe file %q: %w",
|
||||
"state_dir", probePath, err)
|
||||
|
||||
Reference in New Issue
Block a user