Skip to content

Conversation

@vaibhavdaren
Copy link
Contributor

When downloading repository files via the repository provider, automatically add priority=50 to repository sections that don't have a priority field. This helps with package resolution conflicts by ensuring downloaded repositories have appropriate priority settings.

  • Add DEFAULT_REPOSITORY_PRIORITY constant (value: 50)
  • Implement Repository._augment_priority() to add priority to sections
  • Call _augment_priority() in Repository.from_url()
  • Add comprehensive unit tests for priority augmentation
  • Preserve existing priority values when already present

When downloading repository files via the repository provider, automatically
add priority=50 to repository sections that don't have a priority field.
This helps with package resolution conflicts by ensuring downloaded
repositories have appropriate priority settings.

- Add DEFAULT_REPOSITORY_PRIORITY constant (value: 50)
- Implement Repository._augment_priority() to add priority to sections
- Call _augment_priority() in Repository.from_url()
- Add comprehensive unit tests for priority augmentation
- Preserve existing priority values when already present
@vaibhavdaren vaibhavdaren added the plugin | artifact Related to the `prepare/artifact` plugin. label Jan 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

plugin | artifact Related to the `prepare/artifact` plugin.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Set repository priority to a default value for repositories added via repository-url provider

2 participants