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 EXTRA_DEBIAN_PACKAGES quoting bug #25

Merged
merged 2 commits into from
Oct 4, 2024
Merged

Fix EXTRA_DEBIAN_PACKAGES quoting bug #25

merged 2 commits into from
Oct 4, 2024

Conversation

dmcc
Copy link
Collaborator

@dmcc dmcc commented Oct 3, 2024

Previously, this needed extra quotes since it was run as a shell command. Since command arguments are now passed as an array of strings, the extra quoting combined with the quotes from repr() result in some bizarre things like:

--build-arg 'EXTRA_DEBIAN_PACKAGES="'"'"'pkg1 pkg2'"'"'"'

Previously, this needed extra quotes since it was run as a shell command. Since command arguments are now passed as an array of strings, the extra quoting combined with the quotes from repr() result in some bizarre things like:

    --build-arg 'EXTRA_DEBIAN_PACKAGES="'"'"'pkg1 pkg2'"'"'"'
@dmcc dmcc added the bug Something isn't working label Oct 3, 2024
@dmcc dmcc requested review from dhhagan and lswainemoore October 4, 2024 15:01
Copy link

@lswainemoore lswainemoore left a comment

Choose a reason for hiding this comment

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

I did not know you could use !r in f-strings in the first place. but change seems fine to me!

@dmcc
Copy link
Collaborator Author

dmcc commented Oct 4, 2024

Thanks Lincoln!

@dmcc dmcc merged commit 2f37656 into main Oct 4, 2024
4 checks passed
@dmcc dmcc deleted the dmcc/runner-quote-bug branch October 4, 2024 18:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants