[Spack] Package Manager: Update Endpoint (#7957)

We transition our endpoints in Spack to a new location. This adjusts
the new JSON files that we can query for shields.
This commit is contained in:
Axel Huebl
2022-05-12 17:12:15 -07:00
committed by GitHub
parent bab7ffc0ee
commit 2558aec7de

View File

@@ -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'],
},
]
@@ -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',
},