diff --git a/services/spack/spack.service.js b/services/spack/spack.service.js index 54eb60bb7c67d..653c5d3be7c48 100644 --- a/services/spack/spack.service.js +++ b/services/spack/spack.service.js @@ -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', },