Skip to content

Commit

Permalink
fix(bazel): use bazel-module versioning for bazel datasource (#25649)
Browse files Browse the repository at this point in the history
  • Loading branch information
rarkins committed Nov 8, 2023
1 parent 79556f4 commit a4a8121
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/modules/datasource/bazel/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand All @@ -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`;
Expand Down

0 comments on commit a4a8121

Please sign in to comment.