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

[Dependencies] Allow using top_level with RuntimeDependency #279

Merged
merged 1 commit into from
Oct 17, 2022

Conversation

giordano
Copy link
Member

Also, deprecate top_level with Dependency. Ref: #275 (comment).

Also, deprecate `top_level` with `Dependency`.
@@ -128,6 +128,7 @@ struct Dependency <: AbstractDependency
end
end
if top_level
@warn("Dependency(\"$(getname(pkg))\") was defined as top-level but this is deprecated, use `RuntimeDependency` instead")
Copy link
Member Author

Choose a reason for hiding this comment

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

Strictly speaking, we could also just remove top_level from Dependency without doing a breaking release as it was never documented 😇

@giordano
Copy link
Member Author

Failure on nightly is JuliaLang/julia#47180

@giordano giordano merged commit c9c95b3 into JuliaPackaging:master Oct 17, 2022
@giordano giordano deleted the mg/toplevel-runtimedep branch October 29, 2022 21:14
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.

2 participants