fix: getenv treats an explicitly-empty value as unset #69

Closed
opened 2026-07-02 00:20:16 +10:00 by unkinben · 0 comments
Owner

internal/config/env.go:67 returns the fallback whenever os.Getenv is empty, so an intentionally-empty env var cannot override a non-empty default. Use os.LookupEnv.

`internal/config/env.go:67` returns the fallback whenever `os.Getenv` is empty, so an intentionally-empty env var cannot override a non-empty default. Use `os.LookupEnv`.
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: unkin/artifactapi#69