You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe what should be investigated or refactored
The current loading process of a Zarf package is brittle and contains far too many code branches. Refactoring into a Provider pattern will allow for a common interface system to cleanly abstract away the different loading methods (via tarball, HTTP(S), OCI, etc...)
The text was updated successfully, but these errors were encountered:
if alreadyExtracted && pathsToCheck == nil {
paths, err := utils.RecursiveFileList(p.tmp.Base, nil, false)
if err != nil {
return fmt.Errorf("unable to get a list of files in the package: %w", err)
}
for _, path := range paths {
pathsToCheck = append(pathsToCheck, strings.TrimPrefix(path, p.tmp.Base+string(os.PathSeparator)))
}
}
Describe what should be investigated or refactored
The current loading process of a Zarf package is brittle and contains far too many code branches. Refactoring into a Provider pattern will allow for a common interface system to cleanly abstract away the different loading methods (via tarball, HTTP(S), OCI, etc...)
The text was updated successfully, but these errors were encountered: