Skip to content

Commit 798e579

Browse files
committed
skip the local package, if any
1 parent 7bad70d commit 798e579

File tree

1 file changed

+7
-1
lines changed
  • minimum_versions/environments

1 file changed

+7
-1
lines changed

minimum_versions/environments/pixi.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,13 @@ def parse_pixi_environment(name: str, manifest_path: pathlib.Path | None):
115115
for feature in feature_names
116116
]
117117

118-
pins = merge(features)
118+
local_package_name = get_in(["package", "name"], pixi_config, None)
119+
pins = {
120+
name: pin
121+
for name, pin in merge(features).items()
122+
# skip the local package, if any
123+
if name != local_package_name
124+
}
119125

120126
specs = []
121127
warnings = []

0 commit comments

Comments
 (0)