Skip to content

Commit

Permalink
Add ruby -base package instead of default package for gem dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
pethin committed Sep 13, 2024
1 parent 2b86234 commit 413cf9c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions pkg/sca/sca.go
Original file line number Diff line number Diff line change
Expand Up @@ -577,8 +577,8 @@ func generateRubyDeps(ctx context.Context, hdl SCAHandle, generated *config.Depe
}
}

log.Infof(" found ruby gem, generating ruby-%s dependency", rubyGemVer)
generated.Runtime = append(generated.Runtime, fmt.Sprintf("ruby-%s", rubyGemVer))
log.Infof(" found ruby gem, generating ruby-%s-base dependency", rubyGemVer)
generated.Runtime = append(generated.Runtime, fmt.Sprintf("ruby-%s-base", rubyGemVer))

return nil
}
Expand Down
2 changes: 1 addition & 1 deletion pkg/sca/sca_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ func TestRubySca(t *testing.T) {
t.Fatal(err)
}

want := config.Dependencies{Runtime: []string{"ruby-3.2"}}
want := config.Dependencies{Runtime: []string{"ruby-3.2-base"}}

if diff := cmp.Diff(want, got); diff != "" {
t.Errorf("Analyze(): (-want, +got):\n%s", diff)
Expand Down

0 comments on commit 413cf9c

Please sign in to comment.