Skip to content

Component actions cmd mutation on Windows fails #3798

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

Open
koendelaat opened this issue May 14, 2025 · 1 comment · May be fixed by #3799
Open

Component actions cmd mutation on Windows fails #3798

koendelaat opened this issue May 14, 2025 · 1 comment · May be fixed by #3799
Assignees
Labels
bug 🐞 Something isn't working

Comments

@koendelaat
Copy link

koendelaat commented May 14, 2025

Environment

Device and OS: Windows
App version: v0.54.0
Kubernetes distro being used: k3s
Other:

Steps to reproduce

  1. Create a package with an action cmd that includes multiple variables (e.g. echo ${ZARF_VAR_ENV1} ${ZARF_VAR_ENV2} ${ZARF_CONST_ENV3})
  2. Deploy package from a Windows terminal

Expected result

Command is mutated to: echo $Env:ZARF_VAR_ENV1 $Env:ZARF_VAR_ENV2 $Env:ZARF_CONST_ENV3

Actual Result

Command is mutated to: echo $Env:ZARF_VAR_ENV1 ${ZARF_VAR_ENV2} ${ZARF_CONST_ENV3}

So only the first variable is replaced, AND only variables, not the constants (ZARF_CONST_)

Visual Proof (screenshots, videos, text, etc)

N/A

Severity/Priority

medium

Additional Context

Add any other context or screenshots about the technical debt here.

@brandtkeller
Copy link
Member

Thanks for the issue (and PR) @koendelaat - we'll monitor the PR and provide any required feedback.

@github-project-automation github-project-automation bot moved this to Triage in Zarf May 15, 2025
@brandtkeller brandtkeller added bug 🐞 Something isn't working and removed possible-bug 🐛 labels May 15, 2025
@brandtkeller brandtkeller moved this from Triage to In progress in Zarf May 15, 2025
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
Status: In progress
Development

Successfully merging a pull request may close this issue.

2 participants