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

chore: refactor Zarf Component composition #2058

Merged
merged 79 commits into from
Nov 1, 2023
Merged

Conversation

Noxsios
Copy link
Contributor

@Noxsios Noxsios commented Oct 7, 2023

Description

chain, err := composer.NewImportChain(pkg.Components[0], "amd64")
if err != nil {
    panic(err)
}

fmt.Println(chain.String())

results in:

component "k3s" imports "k3s" in packages/distros/k3s, which imports "k3s" in common

Related Issue

Fixes #2037
Fixes #1827
Fixes #1845

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Other (security config, docs update, etc)

Checklist before merging

@netlify
Copy link

netlify bot commented Oct 7, 2023

Deploy Preview for zarf-docs canceled.

Name Link
🔨 Latest commit ae8ba09
🔍 Latest deploy log https://app.netlify.com/sites/zarf-docs/deploys/6541c1609bdfcb00080eb47b

Signed-off-by: razzle <[email protected]>
Signed-off-by: razzle <[email protected]>
Signed-off-by: razzle <[email protected]>
src/pkg/packager/composer/list.go Outdated Show resolved Hide resolved
src/pkg/packager/composer/list.go Outdated Show resolved Hide resolved
src/pkg/packager/composer/list.go Outdated Show resolved Hide resolved
Signed-off-by: razzle <[email protected]>
@Racer159 Racer159 changed the title Refactor Component Composition chore: refactor Zarf Component composition Oct 11, 2023
Signed-off-by: razzle <[email protected]>
Signed-off-by: razzle <[email protected]>
Signed-off-by: razzle <[email protected]>
Signed-off-by: razzle <[email protected]>
Signed-off-by: razzle <[email protected]>
Signed-off-by: razzle <[email protected]>
Signed-off-by: razzle <[email protected]>
Signed-off-by: razzle <[email protected]>
Signed-off-by: razzle <[email protected]>
Signed-off-by: razzle <[email protected]>
@Racer159 Racer159 removed the needs-tests PR Label - Tests required to merge label Oct 31, 2023
@Racer159 Racer159 self-requested a review October 31, 2023 15:29
lucasrod16
lucasrod16 previously approved these changes Oct 31, 2023
Copy link
Contributor

@lucasrod16 lucasrod16 left a comment

Choose a reason for hiding this comment

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

lgtm

@Racer159 Racer159 dismissed their stale review October 31, 2023 23:19

I have modified this PR significantly and the review is no longer valid

Copy link
Contributor

@jeff-mccoy jeff-mccoy left a comment

Choose a reason for hiding this comment

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

way more sane way to manage composition, lgtm

@Racer159 Racer159 merged commit ff70c6a into main Nov 1, 2023
26 checks passed
@Racer159 Racer159 deleted the refactor-composition branch November 1, 2023 04:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants