mirror of
https://github.com/renovatebot/renovate.git
synced 2026-11-03 02:53:40 +00:00
a16858be0d
* refactor(workers): allow extractedConstraints on PackageDependency Mirror the existing PackageFileContent.extractedConstraints field on PackageDependency so managers can attach per-dep constraints (e.g. python_version markers from PEP 508 dependencies) without overloading the user-facing constraints field. In fetch.ts these dep-level constraints are merged on top of the file/global constraints before lookup, so the most specific source wins while user packageRules can still override afterwards. Extracted from #42701 at the reviewer's request so the type-level change can land independently of the pep621/poetry feature work that consumes it. * fix(workers): prefer configured constraints over extracted values Preserve configured constraints when extraction provides values for the same names. User configuration must take precedence over metadata discovered during package extraction so users retain control over dependency lookup behavior. --------- Co-authored-by: wwade <wwade@users.noreply.github.com>