tpagectl: config auto-lookup discovers undocumented file extensions #540
Labels
No labels
Compat/Breaking
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Reviewed
Confirmed
Reviewed
Duplicate
Reviewed
Invalid
Reviewed
Won't Fix
Status
Abandoned
Status
Blocked
Status
Need More Info
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
thwap/thwap-pagesd#540
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
config.LoadusesSetConfigName(".tpagectl"), which makes viper search all supported extensions (toml, yml, ini, env, etc.) — not just the documented.tpagectl.yaml/.tpagectl.json. When both.tpagectl.yamland.tpagectl.jsonexist in the same directory, the match is silent and extension-order dependent.Suggested fix: restrict discovered extensions to yaml/json (or document the actual behavior and determinism).
Ref: PR #537