Skip to content

refactor!: move template out of internal - #5212

Open
a1994sc wants to merge 2 commits into
mainfrom
refactor/move-template-out-of-internal
Open

refactor!: move template out of internal#5212
a1994sc wants to merge 2 commits into
mainfrom
refactor/move-template-out-of-internal

Conversation

@a1994sc

@a1994sc a1994sc commented Aug 11, 2026

Copy link
Copy Markdown
Contributor

Description

This PR moves the previously internal package to under src/pkg/packager

Related Issue

Fixes #5211

Checklist before merging

Signed-off-by: Allen Conlon <software@conlon.dev>
@a1994sc
a1994sc requested review from a team as code owners August 11, 2026 21:58
@netlify

netlify Bot commented Aug 11, 2026

Copy link
Copy Markdown

Deploy Preview for zarf-docs ready!

Name Link
🔨 Latest commit 7550389
🔍 Latest deploy log https://app.netlify.com/projects/zarf-docs/deploys/6a7ef958c6c7390008f009bd
😎 Deploy Preview https://deploy-preview-5212--zarf-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@codecov

codecov Bot commented Aug 11, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

Files with missing lines Coverage Δ
src/pkg/packager/actions/actions.go 25.47% <ø> (ø)
src/pkg/packager/assemble/assemble.go 55.73% <ø> (+0.25%) ⬆️
src/pkg/packager/deploy.go 23.06% <ø> (+5.40%) ⬆️
src/pkg/packager/find_images.go 58.96% <ø> (ø)
src/pkg/packager/inspect.go 56.03% <ø> (+0.25%) ⬆️
src/pkg/packager/remove.go 0.00% <ø> (ø)
src/pkg/packager/values_preflight.go 74.16% <ø> (ø)
src/pkg/template/refs.go 77.50% <ø> (ø)
src/pkg/template/template.go 88.63% <ø> (ø)

... and 31 files 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.

@AustinAbro321 AustinAbro321 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Small comment and question, but I agree with the direction

Comment thread .prekignore
Comment thread src/pkg/packager/actions/actions.go Outdated
ptmpl "github.com/zarf-dev/zarf/src/internal/packager/template"
"github.com/zarf-dev/zarf/src/internal/template"
"github.com/zarf-dev/zarf/src/pkg/logger"
"github.com/zarf-dev/zarf/src/pkg/packager/template"

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I think I'd rather have the template path be src/pkg/template than src/pkg/packager/template. While it does have functions like WithPackage it is generally agnostic, and could be used outside of the context of a Zarf package.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I am totally fine with that, mostly guessed where to put it, ha

Signed-off-by: Allen Conlon <software@conlon.dev>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

The action.Run function takes in an internal only object, and can not be use by external modules

2 participants