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