From ead3a7b240b3b65e9d8c4c425ba785d286b83b50 Mon Sep 17 00:00:00 2001 From: Marek Antoniak Date: Thu, 10 Oct 2024 16:11:50 +0200 Subject: [PATCH] feat: Use v1 API in conan datasource --- lib/modules/datasource/conan/index.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/modules/datasource/conan/index.ts b/lib/modules/datasource/conan/index.ts index 8ecb40124792bb..6382c5070cffb6 100644 --- a/lib/modules/datasource/conan/index.ts +++ b/lib/modules/datasource/conan/index.ts @@ -88,7 +88,7 @@ export class ConanDatasource extends Datasource { const conanPackage = getConanPackage(packageName); const revisionLookUp = joinUrlParts( url, - 'v2/conans/', + 'v1/conans/', conanPackage.conanName, newValue, conanPackage.userAndChannel, @@ -131,7 +131,7 @@ export class ConanDatasource extends Datasource { const url = ensureTrailingSlash(registryUrl); const lookupUrl = joinUrlParts( url, - `v2/conans/search?q=${conanPackage.conanName}`, + `v1/conans/search?q=${conanPackage.conanName}`, ); try { @@ -180,7 +180,7 @@ export class ConanDatasource extends Datasource { const latestRevisionUrl = joinUrlParts( url, - `v2/conans/${conanPackage.conanName}/${latestVersion}/${conanPackage.userAndChannel}/latest`, + `v1/conans/${conanPackage.conanName}/${latestVersion}/${conanPackage.userAndChannel}/latest`, ); const revResp = await this.http.getJson(latestRevisionUrl);