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

when reading build-args from file, always trim whitespace for key and… #3997

Merged
merged 1 commit into from
Mar 2, 2024

Conversation

deitch
Copy link
Collaborator

@deitch deitch commented Mar 1, 2024

… value

- What I did

When reading build-args from files, key and value always should have whitespace trimmed, or you can end up with a build arg whose name is MYARG or one whose value is 25 .

- How I did it

Added TrimSpace() before making part of the image build opts.

- How to verify it

CI

- Description for the changelog

Safer handling of build-args files with trimspace

… value

Signed-off-by: Avi Deitcher <avi@deitcher.net>
@deitch deitch merged commit 7e45f8e into linuxkit:master Mar 2, 2024
22 checks passed
@deitch deitch deleted the build-args-files-trim branch March 2, 2024 19:21
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.

None yet

1 participant