Skip to content

Conversation

AustinAbro321
Copy link
Contributor

@AustinAbro321 AustinAbro321 commented Aug 15, 2025

Description

The name in variables are always made uppercase when they are used. We automatically make set variables from the CLI uppercase, and we only allow uppercase variables in the schema but there's no mechanism to make sure SDK variables are uppercase. This changes the variables package so we simply always make the variable names uppercase

Related Issue

Fixes #4081

Checklist before merging

Signed-off-by: Austin Abro <austinabro321@gmail.com>
Copy link

netlify bot commented Aug 15, 2025

Deploy Preview for zarf-docs canceled.

Name Link
🔨 Latest commit de65e02
🔍 Latest deploy log https://app.netlify.com/projects/zarf-docs/deploys/689f3f0cc9a866000880b1bc

Copy link

codecov bot commented Aug 15, 2025

Codecov Report

❌ Patch coverage is 66.66667% with 1 line in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
src/pkg/variables/variables.go 66.66% 1 Missing ⚠️
Files with missing lines Coverage Δ
src/pkg/variables/variables.go 78.94% <66.66%> (+0.76%) ⬆️

... and 1 file with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Signed-off-by: Austin Abro <austinabro321@gmail.com>
@AustinAbro321 AustinAbro321 changed the title fix: auto uppercase variables fix(sdk): auto uppercase variables Aug 15, 2025
@AustinAbro321 AustinAbro321 marked this pull request as ready for review August 15, 2025 14:35
@AustinAbro321 AustinAbro321 requested review from a team as code owners August 15, 2025 14:35
Copy link
Member

@brandtkeller brandtkeller left a comment

Choose a reason for hiding this comment

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

lgtm. Simple and aligns with the described CLI implementation

@AustinAbro321 AustinAbro321 added this pull request to the merge queue Aug 15, 2025
Merged via the queue into main with commit e1aad74 Aug 15, 2025
27 checks passed
@AustinAbro321 AustinAbro321 deleted the auto-uppercase-variables branch August 15, 2025 15:54
Ansible-man pushed a commit to Ansible-man/zarf that referenced this pull request Sep 6, 2025
Signed-off-by: Austin Abro <austinabro321@gmail.com>
Signed-off-by: Cade Thomas <cadethomas23@gmail.com>
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.

Inconsisant Variable Templating when using Zarf as an SDK
2 participants