Skip to content

Commit

Permalink
upstrema syft
Browse files Browse the repository at this point in the history
  • Loading branch information
houdini91 committed May 1, 2023
1 parent 653499f commit 548555a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions cmd/syft/cli/packages/lib.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ import (
// }

func RunLib(ctx context.Context, app *config.Application, args []string) (*sbom.SBOM, error) {
err := validateOutputOptions(app)
err := ValidateOutputOptions(app)
if err != nil {
return nil, err
}
Expand All @@ -90,7 +90,7 @@ func RunLib(ctx context.Context, app *config.Application, args []string) (*sbom.

// could be an image or a directory, with or without a scheme
userInput := args[0]
si, err := source.ParseInputWithName(userInput, app.Platform, true, app.Name)
si, err := source.ParseInputWithName(userInput, app.Platform, app.Name, app.DefaultImagePullSource)
if err != nil {
return nil, fmt.Errorf("could not generate source input for packages command: %w", err)
}
Expand Down
2 changes: 1 addition & 1 deletion syft/pkg/cataloger/cataloger.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ type Cataloger interface {
}

// InstallationCatalogers returns a slice of locally implemented catalogers that are fit for detecting installations of packages.
func InstallationCatalogers(cfg Config) []pkg.Cataloger {
func ImageCatalogers(cfg Config) []pkg.Cataloger {
return filterCatalogers([]pkg.Cataloger{
alpm.NewAlpmdbCataloger(),
ruby.NewGemSpecCataloger(),
Expand Down

0 comments on commit 548555a

Please sign in to comment.