Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix handling package version 0, refactor and deduplicate #2217

Merged
merged 4 commits into from
Jan 13, 2025

Conversation

mgorny
Copy link
Contributor

@mgorny mgorny commented Jan 13, 2025

Checklist

  • Added a news entry
  • Regenerated schema JSON if schema altered (python conda_smithy/schema.py)

Fix the boolean logic that caused version of 0 (that is a valid package version) to be incorrectly interpreted as missing, and emit linter errors. While at it, deduplicate the recipe v0 linter to reuse the utility code added along with v1 lints, and refactor the v1 linter to reduce the number of redundant conditions and make the logic easier to follow.

Fixes #2215

Fix the boolean logic that caused version of 0 (that is a valid package
version) to be incorrectly interpreted as missing, and emit linter
errors.  While at it, deduplicate the recipe v0 linter to reuse
the utility code added along with v1 lints, and refactor the v1 linter
to reduce the number of redundant conditions and make the logic easier
to follow.

Fixes conda-forge#2215
@mgorny mgorny requested a review from a team as a code owner January 13, 2025 19:43
@beckermr beckermr merged commit 4a9f4b8 into conda-forge:main Jan 13, 2025
2 checks passed
@mgorny mgorny deleted the version-0 branch January 14, 2025 06:04
@mgorny
Copy link
Contributor Author

mgorny commented Jan 14, 2025

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Package version "0" causes a false positive
2 participants