Skip to content

refactor!: move template out of internal - #5212

Open
a1994sc wants to merge 1 commit into
mainfrom
refactor/move-template-out-of-internal
Open

refactor!: move template out of internal#5212
a1994sc wants to merge 1 commit 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 canceled.

Name Link
🔨 Latest commit 9eb0433
🔍 Latest deploy log https://app.netlify.com/projects/zarf-docs/deploys/6a7b9b1965329d00088cd90a

@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.48% <ø> (ø)
src/pkg/packager/deploy.go 17.66% <ø> (ø)
src/pkg/packager/find_images.go 58.96% <ø> (ø)
src/pkg/packager/inspect.go 55.78% <ø> (ø)
src/pkg/packager/remove.go 0.00% <ø> (ø)
src/pkg/packager/template/refs.go 77.50% <ø> (ø)
src/pkg/packager/template/template.go 88.63% <ø> (ø)
src/pkg/packager/values_preflight.go 74.16% <ø> (ø)
🚀 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
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

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