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

Registry consistency tests: For every version, check that each (weak)compat entry has a corresponding (weak)deps entry #525

Open
wants to merge 8 commits into
base: master
Choose a base branch
from

Conversation

DilumAluthge
Copy link
Member

Fixes #522

bors bot added a commit that referenced this pull request Oct 28, 2023
@JuliaRegistries JuliaRegistries deleted a comment from bors bot Oct 28, 2023
@DilumAluthge DilumAluthge marked this pull request as ready for review October 28, 2023 11:08
bors bot added a commit that referenced this pull request Oct 28, 2023
@JuliaRegistries JuliaRegistries deleted a comment from bors bot Oct 28, 2023
Comment on lines +245 to +247
# Note: it is legal for a package to have Compat.toml but not have
# Deps.toml. Specifically, this is legal if (and only if) the package
# does not have any dependencies, and does have a compat entry for `julia`.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't WeakDeps.toml be part of this reasoning too?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, we should do the same thing for WeakDeps/WeakCompat.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done. We now do this for both Deps/Compat and also for WeakDeps/WeakCompat.

For Deps/Compat, it is legal for Compat.toml to exist but Deps.toml to not exist - specifically, if a package has no dependencies, and it has a compat entry for julia, then it will have Compat.toml but not Deps.toml.

However, if I understand correctly, it is never legal for a package to have Compat.toml but not have Deps.toml.

@DilumAluthge DilumAluthge marked this pull request as draft October 29, 2023 02:06
@DilumAluthge DilumAluthge changed the title Registry consistency tests: For every version, check that each compat entry has a corresponding deps entry Registry consistency tests: For every version, check that each (weak)compat entry has a corresponding (weak)deps entry Oct 29, 2023
bors bot added a commit that referenced this pull request Oct 31, 2023
@JuliaRegistries JuliaRegistries deleted a comment from bors bot Oct 31, 2023
@DilumAluthge DilumAluthge marked this pull request as ready for review October 31, 2023 12:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Invariance check that could be added
2 participants