-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Regression: Output formatting no longer supports join (Go template) #8773
Comments
@jwhonce PTAL |
A friendly reminder that this issue had no activity for 30 days. |
@jwhonce @ashley-cui do you know what's going on? |
I don't know exactly where the problem is but I tested on podman 2.1 and it's definitely a regression. I haven't looked into the old code enough to know where join is handled, but its different than table - table is |
@ashley-cui I know what the issue is and will fix it. Short explanation, we no longer define a set of template functions. |
c/common updated with containers/common#426 |
#9196 should have included fix in podman |
For commands that use the golang template library directly add the compatible template functions Fixes containers#8773 Signed-off-by: Jhon Honce <[email protected]>
For commands that use the golang template library directly add the compatible template functions [NO TESTS NEEDED] Fixes containers#8773 Signed-off-by: Jhon Honce <[email protected]>
For commands that use the golang template library directly add the compatible template functions [NO TESTS NEEDED] Fixes containers#8773 Signed-off-by: Jhon Honce <[email protected]>
For commands that use the golang template library directly add the compatible template functions [NO TESTS NEEDED] Fixes containers#8773 Signed-off-by: Jhon Honce <[email protected]>
Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)
/kind bug
Description
Podman (v2.2.1) no longer supports
join
Go template when formatting output using--format
. This is a regression compared to older podman (e.g. in F31). I haven't tested all Go templates from https://docs.docker.com/config/formatting/ sojoin
might not be the only one which is not working.Steps to reproduce the issue:
podman pull fedora
podman inspect fedora --format '{{join .Config.Env "\n"}}'
Describe the results you received:
ERRO[0000] Error printing inspect output: template: all inspect:1: function "join" not defined
Describe the results you expected:
Additional information you deem important (e.g. issue happens only occasionally):
Output of
podman version
:Package info (e.g. output of
rpm -q podman
orapt list podman
):Have you tested with the latest version of Podman and have you checked the Podman Troubleshooting Guide?
Yes, latest released in Fedora 33.
Additional information:
On Fedora 31 this works as expected:
The text was updated successfully, but these errors were encountered: