Skip to content

Commit 7ee68ab

Browse files
committed
Bring back package spec check
1 parent 9d0cf72 commit 7ee68ab

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

scripts/src/ecosystem_scripts/validate_registry.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -227,6 +227,11 @@ def validate_package(self, package_spec: str, context: str) -> None | Validation
227227
if package_spec in self.validated_packages:
228228
return None
229229

230+
# Parse channel and package name
231+
if "::" not in package_spec:
232+
msg = f"{context}: Invalid Conda package spec {package_spec!r} (expected format: channel::package)"
233+
return ValidationError(msg)
234+
230235
channel, package_name = package_spec.split("::", 1)
231236

232237
# Check package exists on the channel

0 commit comments

Comments
 (0)