← Back to issue list

Make `git` source's mutual exclusivity part of Pydantic schema

View original Github issue

Metadata

Project
craft-parts
Number
#1332
Type
issue
State
open
Author
bepri
Labels
Status: Triaged Type: Enhancement
Created
2025-09-23 16:43:19+00:00
Updated
2025-09-23 16:43:29+00:00
Closed

Current evaluation

No evaluation has been recorded for this issue yet.

Issue body

### What needs to get done The `git` source should encode the mutually exclusive properties of `source-tag`, `source-branch`, and `source-commit` into the Pydantic schema properly. ### Why it needs to get done Spawned from the following TODO comment: https://github.com/canonical/craft-parts/blob/a20b49d1b27ecd00ab74eb786d0f2403184adc97/craft_parts/sources/git_source.py#L55

Evaluation history

No evaluation history available.