Skip to content

Commit

Permalink
feat: Use v1 API in conan datasource
Browse files Browse the repository at this point in the history
  • Loading branch information
kfazi committed Oct 10, 2024
1 parent 9c82300 commit ead3a7b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/modules/datasource/conan/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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 {
Expand Down Expand Up @@ -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<ConanRevisionJSON>(latestRevisionUrl);
Expand Down

0 comments on commit ead3a7b

Please sign in to comment.