We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8eb9fa4 commit 8b065edCopy full SHA for 8b065ed
2 files changed
extractor/convert.go
@@ -106,6 +106,8 @@ func toEcosystem(p *Package) string {
106
return "Hackage"
107
case purl.TypeHex:
108
return "Hex"
109
+ case purl.TypeDrupal:
110
+ return "Drupal"
111
case purl.TypeComposer:
112
return "Packagist"
113
case purl.TypeCargo:
extractor/convert_test.go
@@ -223,6 +223,15 @@ func TestToEcosystem(t *testing.T) {
223
},
224
want: "Go",
225
226
+ {
227
+ name: "drupal_ecosystem",
228
+ pkg: &extractor.Package{
229
+ Name: "name",
230
+ Version: "version",
231
+ PURLType: purl.TypeDrupal,
232
+ },
233
+ want: "Drupal",
234
235
{
236
name: "os_ecosystem",
237
pkg: &extractor.Package{
0 commit comments