Skip to content
Snippets Groups Projects
Unverified Commit a4a8121b authored by Rhys Arkins's avatar Rhys Arkins Committed by GitHub
Browse files

fix(bazel): use bazel-module versioning for bazel datasource (#25649)

parent 79556f4e
No related branches found
Tags 32.38.0
No related merge requests found
...@@ -3,6 +3,7 @@ import { ExternalHostError } from '../../../types/errors/external-host-error'; ...@@ -3,6 +3,7 @@ import { ExternalHostError } from '../../../types/errors/external-host-error';
import { cache } from '../../../util/cache/package/decorator'; import { cache } from '../../../util/cache/package/decorator';
import { HttpError } from '../../../util/http'; import { HttpError } from '../../../util/http';
import { joinUrlParts } from '../../../util/url'; import { joinUrlParts } from '../../../util/url';
import { id as bazelVersioningId } from '../../versioning/bazel-module';
import { BzlmodVersion } from '../../versioning/bazel-module/bzlmod-version'; import { BzlmodVersion } from '../../versioning/bazel-module/bzlmod-version';
import { Datasource } from '../datasource'; import { Datasource } from '../datasource';
import type { GetReleasesConfig, Release, ReleaseResult } from '../types'; import type { GetReleasesConfig, Release, ReleaseResult } from '../types';
...@@ -18,6 +19,7 @@ export class BazelDatasource extends Datasource { ...@@ -18,6 +19,7 @@ export class BazelDatasource extends Datasource {
override readonly registryStrategy = 'hunt'; override readonly registryStrategy = 'hunt';
override readonly customRegistrySupport = true; override readonly customRegistrySupport = true;
override readonly caching = true; override readonly caching = true;
override readonly defaultVersioning = bazelVersioningId;
static packageMetadataPath(packageName: string): string { static packageMetadataPath(packageName: string): string {
return `/modules/${packageName}/metadata.json`; return `/modules/${packageName}/metadata.json`;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment