From d7e5110ad7793412f56bca32d5c367ad580d93c7 Mon Sep 17 00:00:00 2001 From: Axel Huebl Date: Thu, 12 May 2022 15:29:43 -0700 Subject: [PATCH] [Spack] Package Manager: Update Endpoint We transition our endpoints in Spack to a new location. This adjusts the new JSON files that we can query for shields. --- services/spack/spack.service.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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', },