Skip to content

fix(internal/provider): correct escaping of strings in envbuilder_cached_image.env #32

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

Merged
merged 3 commits into from
Aug 14, 2024

Conversation

johnstcn
Copy link
Member

@johnstcn johnstcn commented Aug 14, 2024

Fixes #31

We had previously been doing the equivalent of value.String() when writing envbuilder_cached_image.env. This was incorrectly escaping newlines, potentially breaking ENVBUILDER_INIT_SCRIPT.

This PR modifies the behaviour to correctly handle string values via ValueString() instead.

@johnstcn johnstcn requested a review from mafredri August 14, 2024 13:18
@johnstcn johnstcn self-assigned this Aug 14, 2024
Copy link
Member

@mafredri mafredri left a comment

Choose a reason for hiding this comment

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

LGTM 👍🏻

@johnstcn johnstcn merged commit 68cc59d into main Aug 14, 2024
14 checks passed
@johnstcn johnstcn deleted the cj/fix-env-string branch August 14, 2024 13:55
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: provider can mangle ENVBUILDER_INIT_SCRIPT
2 participants