libpod-2.0.0_rc7 & libpod-2.0.0 truncate ENV values when set from ARGS on '=' #6785
Labels
kind/bug
Categorizes issue or PR as related to a bug.
locked - please file new issue/PR
Assist humans wanting to comment on an old issue or PR with locked comments.
Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)
/kind bug
Description
With podman-2.0.0_rc6 and prior, it was possible to define a multi-value ARG (with a value such as '
a=1 b=2 c=3 d=4
') and then set a persistent ENV variable equal to this ephemeral argument - and inspecting the resultant image can confirm that the variable has the same value.However, since podman-2.0.0_rc7 including the release version podman-2.0.0, inspecting the resulting image shows that only the text up to the first equals sign in ARG has been saved into the ENV value, and the remainder have been lost.
(This may be a buildah issue, I'll file a bug there too: the problem appears between 1.15.0-dev and 1.15.0)
Steps to reproduce the issue:
Dockerfile
file with the following content:N.B. This works:
Build the container;
Inspect the image variables (
podman inspect -f '{{ .Config.Env }}' test
):Describe the results you received:
podman-2.0.0_rc6 and previous:
podman-2.0.0_rc7 and later:
Describe the results you expected:
multival=a=1 b=2 c=3 d=4
Additional information you deem important (e.g. issue happens only occasionally):
Error is consistent on every build with the specified versions.
Output of
podman version
:Working:
podman version 2.0.0-rc6
Broken:
podman version 2.0.0-rc7
&podman version 2.0.0
Output of
podman info --debug
:Last working:
First broken:
The text was updated successfully, but these errors were encountered: