Skip to content

Commit

Permalink
[Spack] Package Manager: Update Endpoint
Browse files Browse the repository at this point in the history
We transition our endpoints in Spack to a new location. This adjusts
the new JSON files that we can query for shields.
  • Loading branch information
ax3l committed May 12, 2022
1 parent bab7ffc commit d7e5110
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions services/spack/spack.service.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export default class SpackVersion extends BaseJsonService {
{
title: 'Spack',
namedParams: { packageName: 'adios2' },
staticPreview: this.render({ version: '2.3.1' }),
staticPreview: this.render({ version: '2.8.0' }),
keywords: ['hpc'],
},
]
Expand All @@ -29,10 +29,9 @@ export default class SpackVersion extends BaseJsonService {
}

async fetch({ packageName }) {
const firstLetter = packageName[0]
return this._requestJson({
schema,
url: `https://packages.spack.io/api/${firstLetter}/${packageName}.json`,
url: `https://spack.github.io/packages/data/packages/${packageName}.json`,
errorMessages: {
404: 'package not found',
},
Expand Down

0 comments on commit d7e5110

Please sign in to comment.