Skip to content

Commit 6644620

Browse files
committed
chore: forbid branch and tag for git source
1 parent 12a1112 commit 6644620

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

crates/pixi_spec/src/toml.rs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -557,9 +557,10 @@ impl<'de> toml_span::Deserialize<'de> for TomlSpec {
557557
.optional::<TomlFromStr<_>>("git")
558558
.map(TomlFromStr::into_inner);
559559
let path = th.optional("path");
560-
let branch = th.optional("branch");
561560
let rev = th.optional("rev");
562-
let tag = th.optional("tag");
561+
// TODO: Uncomment when lockfile source pinning is added.
562+
// let branch = th.optional("branch");
563+
// let tag = th.optional("tag");
563564
let subdirectory = th.optional("subdirectory");
564565
let build = th
565566
.optional::<TomlFromStr<_>>("build")
@@ -586,9 +587,9 @@ impl<'de> toml_span::Deserialize<'de> for TomlSpec {
586587
url,
587588
git,
588589
path,
589-
branch,
590590
rev,
591-
tag,
591+
branch: None,
592+
tag: None,
592593
subdirectory,
593594
md5,
594595
sha256,

0 commit comments

Comments
 (0)