Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
UncleGedd committed May 21, 2024
1 parent ea6403d commit 9062d9d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/pkg/bundler/fetcher/local.go
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ func (f *localFetcher) toBundle(pkgTmp string) ([]ocispec.Descriptor, error) {

// filter out optional components
createFilter := filters.Combine(
filters.ByLocalOS(runtime.GOOS),
filters.ByLocalOS(runtime.GOOS), // todo: should we use config.Arch?
filters.ForDeploy(strings.Join(f.pkg.OptionalComponents, ","), false),
)

Expand Down Expand Up @@ -229,7 +229,10 @@ func (f *localFetcher) toBundle(pkgTmp string) ([]ocispec.Descriptor, error) {
}
}

// todo: also remove unnecessary component tarballs

// ensure zarf.yaml, checksums and SBOMS (if exists) are always included
// note you may have extra SBOMs because they are not filtered out
alwaysInclude := []string{pkgPaths.ZarfYAML, pkgPaths.Checksums}
if pkgPaths.SBOMs.Path != "" {
alwaysInclude = append(alwaysInclude, pkgPaths.SBOMs.Path)
Expand Down

0 comments on commit 9062d9d

Please sign in to comment.