mirror of
https://github.com/renovatebot/renovate.git
synced 2026-10-27 07:50:47 +00:00
a2d1b8cf0a
The `rust` tool was resolved via the `github-tags` datasource on `rust-lang/rust` with the default (semver) versioning. That meant the release channel values rustup actually accepts were not understood. Switch all three managers to the `rust-version` datasource, which declares `rust-release-channel` as its `defaultVersioning`, matching the `rust-toolchain` manager and `lib/util/exec/containerbase.ts`. `packageName` becomes `rust` rather than the `rust-lang/rust` owner/repo slug, which is meaningless for this datasource. It is set rather than omitted because mise would otherwise fall back to the backend-prefixed depName, yielding `core:rust` / `asdf:rust` as the package name. No explicit `versioning` is set: the datasource default already applies, and the convention in these files is to set `versioning` only to override a datasource default. Behaviour change: `nightly-<date>` pins were previously skipped as `invalid-value` and now update. `stable`, `beta` and `nightly` are now recognised as ranges rather than flagged invalid, but still only resolve to a concrete version under `rangeStrategy: pin`.
25 lines
887 B
TypeScript
25 lines
887 B
TypeScript
import { GithubReleasesDatasource } from '../../datasource/github-releases/index.ts';
|
|
import { GithubTagsDatasource } from '../../datasource/github-tags/index.ts';
|
|
import { NodeVersionDatasource } from '../../datasource/node-version/index.ts';
|
|
import { NpmDatasource } from '../../datasource/npm/index.ts';
|
|
import { RubyVersionDatasource } from '../../datasource/ruby-version/index.ts';
|
|
import { RustVersionDatasource } from '../../datasource/rust-version/index.ts';
|
|
|
|
export { extractPackageFile } from './extract.ts';
|
|
|
|
export const displayName = 'proto';
|
|
export const url = 'https://moonrepo.dev/proto';
|
|
|
|
export const defaultConfig = {
|
|
managerFilePatterns: ['**/.prototools'],
|
|
};
|
|
|
|
export const supportedDatasources = [
|
|
GithubReleasesDatasource.id,
|
|
GithubTagsDatasource.id,
|
|
NodeVersionDatasource.id,
|
|
NpmDatasource.id,
|
|
RubyVersionDatasource.id,
|
|
RustVersionDatasource.id,
|
|
];
|