Skip to content
Snippets Groups Projects
Unverified Commit f70cbc6c authored by Mark Elliot's avatar Mark Elliot Committed by GitHub
Browse files

fix: Only use GitHub releases to update Bazelisk (#29847)

parent 23794fc1
No related branches found
No related tags found
No related merge requests found
......@@ -7,7 +7,7 @@ describe('modules/manager/bazelisk/extract', () => {
expect(res.deps).toEqual([
{
currentValue: '5.2.0',
datasource: 'github-tags',
datasource: 'github-releases',
depName: 'bazel',
packageName: 'bazelbuild/bazel',
},
......@@ -19,7 +19,7 @@ describe('modules/manager/bazelisk/extract', () => {
expect(res.deps).toEqual([
{
currentValue: '5.2',
datasource: 'github-tags',
datasource: 'github-releases',
depName: 'bazel',
packageName: 'bazelbuild/bazel',
},
......@@ -31,7 +31,7 @@ describe('modules/manager/bazelisk/extract', () => {
expect(res.deps).toEqual([
{
currentValue: 'latestn',
datasource: 'github-tags',
datasource: 'github-releases',
depName: 'bazel',
packageName: 'bazelbuild/bazel',
},
......@@ -43,7 +43,7 @@ describe('modules/manager/bazelisk/extract', () => {
expect(res.deps).toEqual([
{
currentValue: '5.2.0',
datasource: 'github-tags',
datasource: 'github-releases',
depName: 'bazel',
packageName: 'bazelbuild/bazel',
},
......
import { GithubTagsDatasource } from '../../datasource/github-tags';
import { GithubReleasesDatasource } from '../../datasource/github-releases';
import type { PackageDependency, PackageFileContent } from '../types';
export function extractPackageFile(content: string): PackageFileContent {
const dep: PackageDependency = {
depName: 'bazel',
currentValue: content.split('\n', 2)[0].trim(),
datasource: GithubTagsDatasource.id,
datasource: GithubReleasesDatasource.id,
packageName: 'bazelbuild/bazel',
};
return { deps: [dep] };
......
import type { Category } from '../../../constants';
import { GithubTagsDatasource } from '../../datasource/github-tags';
import { GithubReleasesDatasource } from '../../datasource/github-releases';
import * as semverVersioning from '../../versioning/semver';
export { extractPackageFile } from './extract';
......@@ -12,4 +12,4 @@ export const defaultConfig = {
export const categories: Category[] = ['bazel'];
export const supportedDatasources = [GithubTagsDatasource.id];
export const supportedDatasources = [GithubReleasesDatasource.id];
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