Skip to content

Commit

Permalink
Add Hackage support (#775)
Browse files Browse the repository at this point in the history
  • Loading branch information
ysangkok authored Dec 29, 2024
1 parent ef990d1 commit 34d0c7d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/osv-offline-db/src/lib/ecosystem.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
export const ecosystems = [
'crates.io',
'Go',
'Hackage',
'Hex',
'Maven',
'npm',
Expand Down
1 change: 1 addition & 0 deletions packages/osv-offline-db/src/lib/purl-helper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import type { Ecosystem } from './ecosystem';
const PURL_ECOSYSTEMS: Record<Ecosystem, string> = {
'crates.io': 'cargo',
Go: 'golang',
Hackage: 'hackage',
Hex: 'hex',
Maven: 'maven',
NuGet: 'nuget',
Expand Down
1 change: 1 addition & 0 deletions packages/osv-offline-db/src/lib/purl-helper.unit.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ describe('lib/purl-helper', () => {
ecosystem | packageName | purl
${'crates.io'} | ${'libpulse-binding'} | ${'pkg:cargo/libpulse-binding'}
${'Go'} | ${'github.com/hashicorp/consul'} | ${'pkg:golang/github.com/hashicorp/consul'}
${'Hackage'} | ${'aeson'} | ${'pkg:hackage/aeson'}
${'Hex'} | ${'sweet_xml'} | ${'pkg:hex/sweet_xml'}
${'Maven'} | ${'org.apache.struts:struts2-core'} | ${'pkg:maven/org.apache.struts/struts2-core'}
${'npm'} | ${'@hapi/hoek'} | ${'pkg:npm/%40hapi/hoek'}
Expand Down

0 comments on commit 34d0c7d

Please sign in to comment.