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

Fix env parsing panics #621

Merged
merged 2 commits into from Apr 29, 2024
Merged

Conversation

glours
Copy link
Contributor

@glours glours commented Apr 26, 2024

Return errors instead of trigger panic when asserting types.

Fixes docker/compose#11772 and docker/compose#11771

if string type assertion isn't ok, return an error instead of trigger a panic

Signed-off-by: Guillaume Lours <705411+glours@users.noreply.github.com>
Signed-off-by: Guillaume Lours <705411+glours@users.noreply.github.com>
@glours glours requested a review from ndeloof as a code owner April 26, 2024 15:55
@glours glours requested review from milas and jhrotko April 26, 2024 15:55
@glours glours self-assigned this Apr 26, 2024
Copy link
Member

@laurazard laurazard left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@ndeloof ndeloof merged commit b08e215 into compose-spec:main Apr 29, 2024
8 checks passed
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.

[BUG] Crash when using env_file path within include
3 participants