mirror of
https://github.com/rust-lang/cargo
synced 2024-10-30 22:57:17 +00:00
82e80302a7
With #13254, we found MSRV updating is broken. PR #12775 is the last MSRV we got. That was merged before #12654 and #13106. That makes #12654 the most likely culprit. Looking at the logs: ``` DEBUG: Matched 24 file(s) for manager regex: Cargo.toml, benches/benchsuite/Cargo.toml, benches/capture/Cargo.toml, crates/cargo-platform/Cargo.toml, crates/cargo-test-macro/Cargo.toml, crates/cargo-test-support/Cargo.toml, crates/cargo-test-support/containers/apache/bar/Cargo.toml, crates/cargo-test-support/containers/sshd/bar/Cargo.toml, crates/cargo-util-schemas/Cargo.toml, crates/cargo-util/Cargo.toml, crates/crates-io/Cargo.toml, crates/home/Cargo.toml, crates/mdman/Cargo.toml, crates/resolver-tests/Cargo.toml, crates/rustfix/Cargo.toml, crates/semver-check/Cargo.toml, crates/xtask-build-man/Cargo.toml, crates/xtask-bump-check/Cargo.toml, crates/xtask-stale-label/Cargo.toml, credential/cargo-credential-1password/Cargo.toml, credential/cargo-credential-libsecret/Cargo.toml, credential/cargo-credential-macos-keychain/Cargo.toml, credential/cargo-credential-wincred/Cargo.toml, credential/cargo-credential/Cargo.toml ... DEBUG: manager extract durations (ms) { "managers": { "dockerfile": 30, "github-actions": 38, "regex": 386, "cargo": 855 } } DEBUG: Found cargo package files DEBUG: Found dockerfile package files DEBUG: Found github-actions package files DEBUG: Found 25 package file(s) ``` Our regex managers have the files matched but no regex manager packages are found. I think this means that the name association failed or the regex within the file content failed. The differences between cargo and my other projects - Use of `:` - `depNameTemplate` - Presence of `\b` As a first attempt, I'm going to switch `\b` to `\\b` to be like the other escaped regex values.
105 lines
2.4 KiB
Text
105 lines
2.4 KiB
Text
{
|
|
schedule: [
|
|
'before 5am on the first day of the month',
|
|
],
|
|
semanticCommits: 'enabled',
|
|
configMigration: true,
|
|
dependencyDashboard: true,
|
|
ignorePaths: [
|
|
'**/tests/**',
|
|
],
|
|
customManagers: [
|
|
{
|
|
customType: 'regex',
|
|
fileMatch: [
|
|
'Cargo.toml$',
|
|
],
|
|
matchStrings: [
|
|
'\\bMSRV:1\\b.*?(?<currentValue>\\d+\\.\\d+(\\.\\d+)?)',
|
|
'(?<currentValue>\\d+\\.\\d+(\\.\\d+)?).*?\\bMSRV:1\\b',
|
|
],
|
|
depNameTemplate: 'MSRV:1', // Support 1 version of rustc
|
|
packageNameTemplate: 'rust-lang/rust',
|
|
datasourceTemplate: 'github-releases',
|
|
},
|
|
{
|
|
customType: 'regex',
|
|
fileMatch: [
|
|
'Cargo.toml$',
|
|
],
|
|
matchStrings: [
|
|
'\bMSRV:3\b.*?(?<currentValue>\\d+\\.\\d+(\\.\\d+)?)',
|
|
'(?<currentValue>\\d+\\.\\d+(\\.\\d+)?).*?\bMSRV:3\b',
|
|
],
|
|
depNameTemplate: 'MSRV:3', // Support 3 versions of rustc
|
|
packageNameTemplate: 'rust-lang/rust',
|
|
datasourceTemplate: 'github-releases',
|
|
},
|
|
],
|
|
packageRules: [
|
|
{
|
|
commitMessageTopic: 'MSRV (1 version)',
|
|
matchManagers: [
|
|
'custom.regex',
|
|
],
|
|
matchPackageNames: [
|
|
'MSRV:1',
|
|
],
|
|
schedule: [
|
|
'* * * * *',
|
|
],
|
|
groupName: 'msrv',
|
|
},
|
|
{
|
|
commitMessageTopic: 'MSRV (3 versions)',
|
|
matchManagers: [
|
|
'custom.regex',
|
|
],
|
|
matchPackageNames: [
|
|
'MSRV:3',
|
|
],
|
|
extractVersion: '^(?<version>\\d+\\.\\d+)', // Drop the patch version
|
|
schedule: [
|
|
'* * * * *',
|
|
],
|
|
minimumReleaseAge: '85 days', // 2 releases back * 6 weeks per release * 7 days per week + 1
|
|
internalChecksFilter: 'strict',
|
|
groupName: 'msrv',
|
|
},
|
|
{
|
|
matchManagers: [
|
|
'cargo',
|
|
],
|
|
matchPackageNames: [
|
|
'gix-features-for-configuration-only',
|
|
'gix',
|
|
],
|
|
groupName: 'gix',
|
|
},
|
|
// Goals:
|
|
// - Rollup safe upgrades to reduce CI runner load
|
|
// - Have lockfile and manifest in-sync (implicit rules)
|
|
{
|
|
matchManagers: [
|
|
'cargo',
|
|
],
|
|
matchCurrentVersion: '>=0.1.0',
|
|
matchUpdateTypes: [
|
|
'patch',
|
|
],
|
|
automerge: false,
|
|
groupName: 'compatible',
|
|
},
|
|
{
|
|
matchManagers: [
|
|
'cargo',
|
|
],
|
|
matchCurrentVersion: '>=1.0.0',
|
|
matchUpdateTypes: [
|
|
'minor',
|
|
],
|
|
automerge: false,
|
|
groupName: 'compatible',
|
|
},
|
|
],
|
|
}
|