Skip to content
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

refactor: skeleton creator #3042

Merged
merged 1 commit into from
Oct 8, 2024
Merged

refactor: skeleton creator #3042

merged 1 commit into from
Oct 8, 2024

Conversation

phillebaba
Copy link
Member

@phillebaba phillebaba commented Sep 27, 2024

Description

Refactors skeleton creator.

A major feature of the refactor is that the implementation no longer requires sitting in the correct directory to build.

This change also limits imports to a single level. This means that it is no longer possible to import n levels of local skeleton packages anymore.

Related Issue

Relates to #2969

Checklist before merging

@phillebaba phillebaba requested review from a team as code owners September 27, 2024 10:00
Copy link

netlify bot commented Sep 27, 2024

Deploy Preview for zarf-docs canceled.

Name Link
🔨 Latest commit 2ceb476
🔍 Latest deploy log https://app.netlify.com/sites/zarf-docs/deploys/670544833124bf0008a81825

Copy link

codecov bot commented Sep 27, 2024

@phillebaba phillebaba marked this pull request as draft September 27, 2024 10:06
@phillebaba phillebaba changed the title refactor: creator refactor: skeleton creator Sep 27, 2024
@phillebaba phillebaba force-pushed the refactor/creator branch 20 times, most recently from 8304cfd to e29a2ec Compare October 3, 2024 16:59
@phillebaba phillebaba force-pushed the refactor/creator branch 4 times, most recently from a86edd5 to 63c5a9f Compare October 7, 2024 13:56
@phillebaba phillebaba force-pushed the refactor/creator branch 6 times, most recently from 9b415b0 to 032ce43 Compare October 7, 2024 19:27
@phillebaba phillebaba marked this pull request as ready for review October 7, 2024 20:22
src/internal/packager2/layout/create.go Outdated Show resolved Hide resolved
src/internal/packager2/layout/create.go Show resolved Hide resolved
@@ -48,26 +50,36 @@ func (p *Packager) Publish(ctx context.Context) (err error) {
}

if p.cfg.CreateOpts.IsSkeleton {
Copy link
Contributor

Choose a reason for hiding this comment

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

Does this have to be changed?

Copy link
Member Author

Choose a reason for hiding this comment

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

No we can leave changing this until after publish has been refactored if you prefer.

Copy link
Contributor

Choose a reason for hiding this comment

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

I think that would be best

src/internal/packager2/layout/import.go Outdated Show resolved Hide resolved
@phillebaba phillebaba force-pushed the refactor/creator branch 5 times, most recently from 39624a7 to 88cad84 Compare October 8, 2024 13:13
schristoff
schristoff previously approved these changes Oct 8, 2024
Signed-off-by: Philip Laine <philip.laine@gmail.com>
@phillebaba phillebaba added this pull request to the merge queue Oct 8, 2024
Merged via the queue into main with commit 9c4e690 Oct 8, 2024
26 checks passed
@phillebaba phillebaba deleted the refactor/creator branch October 8, 2024 16:51
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.

3 participants