Skip to content

Fix edge case where KO_DATA_PATH is defined but no valid config is found#135

Merged
ganto merged 4 commits into
mainfrom
feature/fix-config-lookup
May 16, 2026
Merged

Fix edge case where KO_DATA_PATH is defined but no valid config is found#135
ganto merged 4 commits into
mainfrom
feature/fix-config-lookup

Conversation

@ganto
Copy link
Copy Markdown
Owner

@ganto ganto commented May 16, 2026

No description provided.

ganto and others added 4 commits May 16, 2026 16:52
When the ordered lookup exhausts both candidates without finding a
readable file, the error now names every path tried. The ko-data-path
candidate is also stat'd before being returned, so a local operator
with KO_DATA_PATH inherited from a parent shell sees a meaningful
fallback to ./pkgproxy.yaml rather than a confusing single-path error.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…date

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@ganto ganto force-pushed the feature/fix-config-lookup branch from 45f5763 to b0ff5fd Compare May 16, 2026 14:52
@ganto ganto merged commit ae5ef8e into main May 16, 2026
21 checks passed
@ganto ganto deleted the feature/fix-config-lookup branch May 16, 2026 14:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant