Skip to content

Commit

Permalink
refactor: replace ftypes.Gradle with packageurl.TypeGradle (aquasecur…
Browse files Browse the repository at this point in the history
…ity#7323)

Signed-off-by: nikpivkin <[email protected]>
  • Loading branch information
nikpivkin authored and fhielpos committed Dec 20, 2024
1 parent 52a3c61 commit 079bc26
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/purl/purl.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ func New(t ftypes.TargetType, metadata types.Metadata, pkg ftypes.Package) (*Pac
var qs packageurl.Qualifiers
name, namespace, qs = parseApk(name, metadata.OS)
qualifiers = append(qualifiers, qs...)
case packageurl.TypeMaven, string(ftypes.Gradle): // TODO: replace with packageurl.TypeGradle once they add it.
case packageurl.TypeMaven, packageurl.TypeGradle:
namespace, name = parseMaven(name)
case packageurl.TypePyPi:
name = parsePyPI(name)
Expand Down

0 comments on commit 079bc26

Please sign in to comment.