-
Notifications
You must be signed in to change notification settings - Fork 173
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: avoid false positives in import cycle detection (#3449)
Signed-off-by: Austin Abro <[email protected]>
- Loading branch information
1 parent
bea609f
commit 345abaa
Showing
10 changed files
with
82 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
src/internal/packager2/layout/testdata/import/branch/child/zarf.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
kind: ZarfPackageConfig | ||
metadata: | ||
name: example-child | ||
|
||
components: | ||
- name: common | ||
import: | ||
path: ../common | ||
|
||
- name: parent-child-common | ||
import: | ||
path: ../common |
10 changes: 10 additions & 0 deletions
10
src/internal/packager2/layout/testdata/import/branch/common/zarf.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
kind: ZarfPackageConfig | ||
metadata: | ||
name: example-shared | ||
|
||
components: | ||
- name: common | ||
description: This gets imported by the parent and child directly | ||
|
||
- name: parent-child-common | ||
description: This gets imported in a chain parent->child->common |
10 changes: 10 additions & 0 deletions
10
src/internal/packager2/layout/testdata/import/branch/expected.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
kind: ZarfPackageConfig | ||
metadata: | ||
name: example-package | ||
components: | ||
- name: common | ||
description: This gets imported by the parent and child directly | ||
required: true | ||
- name: parent-child-common | ||
description: This gets imported in a chain parent->child->common | ||
required: true |
14 changes: 14 additions & 0 deletions
14
src/internal/packager2/layout/testdata/import/branch/zarf.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
kind: ZarfPackageConfig | ||
metadata: | ||
name: example-package | ||
|
||
components: | ||
- name: common | ||
required: true | ||
import: | ||
path: common | ||
|
||
- name: parent-child-common | ||
required: true | ||
import: | ||
path: child |
File renamed without changes.
File renamed without changes.
File renamed without changes.