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 vars containing = #616

Merged
merged 1 commit into from
Jun 7, 2024
Merged

fix: env vars containing = #616

merged 1 commit into from
Jun 7, 2024

Conversation

thesayyn
Copy link
Collaborator

@thesayyn thesayyn commented Jun 7, 2024

This fixes a bug where oci_image removed the content of env variables after first = in the value. This fixes that issue and adds more tests to test against other cases.

I added a nice assertion rule similar to assert_tar_contains which doesn't depend on a docker daemon and doesn't require a yaml file as a configuration language.

(it was already somewhere in a branch, i just added it here so i can use it in the future.)

@thesayyn thesayyn requested a review from alexeagle June 7, 2024 19:47
@thesayyn thesayyn changed the base branch from main to 2.x June 7, 2024 19:48
@thesayyn thesayyn force-pushed the fix_env_split branch 2 times, most recently from 10ee2ea to cdf0ea2 Compare June 7, 2024 20:23
@@ -222,3 +222,30 @@ genrule(
],
sha256 = "d7c7af5d86f43a885069408a89788f67f248e8124c682bb73936f33874e0611b",
)

http_file(
Copy link
Collaborator

Choose a reason for hiding this comment

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

I should put rules_multitool in here as devdep

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

that'd be great a follow-up

@thesayyn thesayyn merged commit 5a88694 into 2.x Jun 7, 2024
18 checks passed
@thesayyn thesayyn deleted the fix_env_split branch June 7, 2024 20:35
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.

2 participants