You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add mutual exclusivity validator for source vs legacy fields #1207
The new SourceResolver data model is complete in _resolver.py (PRs #1228, #1235). Once the source field is activated on PackageSettings and VariantInfo (Phase 1 — #1291), we need validation to prevent users from mixing old and new config styles.
Top-level and variant-specific source settings are mutually exclusive with download_source, resolver_dist, wheel_server_url, and pre_build settings. It is an error to combine the new source settings with any of the old settings.
The new source field would silently take precedence and the legacy resolver_dist is ignored. This is confusing and can lead to configuration mistakes that are hard to debug.
Acceptance criteria
Setting source alongside download_source, resolver_dist, wheel_server_url, or pre_built raises a clear validation error
Validation works at both package level and variant level
Existing configs (legacy-only or new-only) continue to load without errors
Error message clearly tells the user which fields conflict
Activity
feat(packagesettings): error when `source` and legacy settings are bo…
LalatenduMohanty commentedon Sep 11, 2026
Closing as #1307 has merged.
feat(packagesettings): error when `source` and legacy settings are bo…
feat(packagesettings): error when `source` and legacy settings are bo…