Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Look up config file in default locations #6160

Merged
merged 5 commits into from
Jun 3, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fixup! Look for config.yaml file in ./ and ./config directories
  • Loading branch information
chaudum committed Jun 1, 2022
commit 65f85a7a03f5054c78aaed3d3102eaf1a3734467
2 changes: 1 addition & 1 deletion pkg/util/cfg/files.go
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,6 @@ func ConfigFileLoader(args []string, name string) Source {
return YAML(val, expandEnv)(dst)
}
}
return fmt.Errorf("%s does not exist", f.Value.String())
return fmt.Errorf("%s does not exist, set %s for custom config path", f.Value.String(), name)
}
}