Skip to content

feat(manager): add renovate-constraints manager#42873

Draft
jamietanna wants to merge 3 commits intomainfrom
feat/update-constraints
Draft

feat(manager): add renovate-constraints manager#42873
jamietanna wants to merge 3 commits intomainfrom
feat/update-constraints

Conversation

@jamietanna
Copy link
Copy Markdown
Contributor

@jamietanna jamietanna commented Apr 24, 2026

Changes

As noted in #41571, it would be useful to detect and suggest updates
when specifying constraints in Renovate config, where it's a known
tool we provide versioning information for.

Context

Please select one of the following:

AI assistance disclosure

Did you use AI tools to create any part of this pull request?

Please select one option and, if yes, briefly describe how AI was used (e.g., code, tests, docs) and which tool(s) you used.

  • No — I did not use AI for this contribution.
  • Yes — minimal assistance (e.g., IDE autocomplete, small code completions, grammar fixes).
  • Yes — substantive assistance (AI-generated non‑trivial portions of code, tests, or documentation).
  • Yes — other (please describe):

Documentation (please check one with an [x])

  • I have updated the documentation, or
  • No documentation update is required

How I've tested my work (please select one)

I have verified these changes via:

  • Code inspection only, or
  • Newly added/modified unit tests, or
  • No unit tests, but ran on a real repository, or
  • Both unit tests + ran on a real repository

The public repository: JamieTanna-Mend-testing/constraints-testing#3

@jamietanna jamietanna linked an issue Apr 24, 2026 that may be closed by this pull request
@jamietanna jamietanna force-pushed the feat/update-constraints branch 2 times, most recently from ccc6934 to c498a30 Compare April 24, 2026 14:42
@jamietanna jamietanna changed the base branch from docs/constraints-docs to main April 24, 2026 14:42
As noted in #41571, it would be useful to detect and suggest updates
when specifying `constraints` in Renovate config, where it's a known
tool we provide versioning information for.
@jamietanna jamietanna force-pushed the feat/update-constraints branch from c498a30 to b33d0e2 Compare April 24, 2026 14:48
@jamietanna jamietanna requested a review from a team April 24, 2026 14:49
@jamietanna jamietanna marked this pull request as ready for review April 24, 2026 14:49
@github-actions github-actions Bot requested a review from viceice April 24, 2026 14:49
Comment thread lib/modules/manager/renovate-constraints/extract.spec.ts
Copy link
Copy Markdown
Contributor Author

@jamietanna jamietanna left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we're not overriding depName (to group with other dependency updates) did we want to make this Update constraint golang to ...?

Copy link
Copy Markdown
Member

@viceice viceice left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

does it make sense to have a single renovate config manager for preset extends version and constraints updates?


export const RenovateJson = Json5.pipe(
z.object({
constraints: z.record(z.string(), z.string()).optional(),
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we should support it in package rules too, I think sometimes it needs to be scooped to paths

@jamietanna jamietanna marked this pull request as draft April 24, 2026 16:07
@jamietanna
Copy link
Copy Markdown
Contributor Author

does it make sense to have a single renovate config manager

I think so yes - wasn't sure if we wanted to do that now, or at a point in the future

I guess if we do that, we'll need to do a refactor first, add a migration?

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.

Detect constraints and provide updates for them

2 participants