Skip to content

fix(renovate): infer CPM Git repository URLs - #1013

Merged
ReenigneArcher merged 2 commits into
masterfrom
codex/renovate-cpm-repository
Nov 20, 2026
Merged

ReenigneArcher merged 2 commits into
masterfrom
codex/renovate-cpm-repository

Conversation

@ReenigneArcher

@ReenigneArcher ReenigneArcher commented Nov 20, 2026 •

Copy link
Copy Markdown
Member

Description

The shared CPM preset uses two matchers. One reads VERSION or TAG pins with an optional SHA-256 checksum. The other reads a ref and a commit SHA. Both read the datasource from the annotation.

For a commit pin, Renovate can read GIT_REPOSITORY from the following CPMDeclarePackage declaration. An explicit packageName takes precedence. Moonlight-XboxOG #361 is a consumer.

Screenshot

Issues Fixed or Closed

Roadmap Issues

Testing

  • npm test passed all 231 tests. Coverage includes one extraction for a version with a checksum, explicit URL precedence, URL inference through intervening CMake statements, and an unrelated declaration after a missing URL.
  • npm run validate-renovate -- --no-global renovate-config.json renovate/cmake.json5 passed. Renovate used its JavaScript RegExp fallback on this Windows host.

Type of Change

  • feat: New feature (non-breaking change which adds functionality)
  • fix: Bug fix (non-breaking change which fixes an issue)
  • docs: Documentation only changes
  • style: Changes that do not affect the meaning of the code (white-space, formatting, missing semicolons, etc.)
  • refactor: Code change that neither fixes a bug nor adds a feature
  • perf: Code change that improves performance
  • test: Adding missing tests or correcting existing tests
  • build: Changes that affect the build system or external dependencies
  • ci: Changes to CI configuration files and scripts
  • chore: Other changes that don't modify src or test files
  • revert: Reverts a previous commit
  • BREAKING CHANGE: Introduces a breaking change (can be combined with any type above)

Checklist

  • Code follows the style guidelines of this project
  • Code has been self-reviewed
  • Code has been commented, particularly in hard-to-understand areas
  • Code docstring/documentation-blocks for new or existing methods/components have been added or updated
  • Tests have been added or updated for new or modified functionality, including regression tests for bug fixes

AI Usage

See our AI usage policy.

  • AI tools were used while preparing this PR

@sonarqubecloud

Copy link
Copy Markdown

@ReenigneArcher
ReenigneArcher merged commit 74693a0 into master Nov 20, 2026
22 checks passed
@ReenigneArcher
ReenigneArcher deleted the codex/renovate-cpm-repository branch November 20, 2026 15:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant