Skip to content

fix: surface signal failures and reject non-UTF-8 env files#12

Merged
jaredLunde merged 1 commit into
mainfrom
jared/version-bump
May 3, 2026
Merged

fix: surface signal failures and reject non-UTF-8 env files#12
jaredLunde merged 1 commit into
mainfrom
jared/version-bump

Conversation

@jaredLunde
Copy link
Copy Markdown
Contributor

Signal errors were silently swallowed and printed to stderr, returning a partial Discovery with no indication of failure. Now collected into Discovery.warnings (omitted from JSON when empty) so callers and CLI consumers can detect incomplete results.

Also replaces from_utf8_lossy with from_utf8 when parsing docker-compose env_file references — non-UTF-8 content is now skipped rather than having bytes silently replaced with U+FFFD, which could corrupt env key parsing.

Signal errors were silently swallowed and printed to stderr, returning
a partial Discovery with no indication of failure. Now collected into
Discovery.warnings (omitted from JSON when empty) so callers and CLI
consumers can detect incomplete results.

Also replaces from_utf8_lossy with from_utf8 when parsing docker-compose
env_file references — non-UTF-8 content is now skipped rather than
having bytes silently replaced with U+FFFD, which could corrupt env key parsing.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@jaredLunde jaredLunde merged commit 5fda754 into main May 3, 2026
1 check passed
@jaredLunde jaredLunde deleted the jared/version-bump branch May 3, 2026 17:04
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