-
-
Notifications
You must be signed in to change notification settings - Fork 323
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
#7407: Register package dependent packages #7412
Conversation
Cargo test and clippy pass locally |
Have you tested this with real packages? |
Depends on what you mean by a real package. I built my own packages and had them depend on others. Do you have examples I should check out? |
No, that works. I just meant packages instead of a Rust test, which wasn't added. I think if you got this working with your own packages, that gives me confidence that it'll work. |
How would I go about adding a test for this? And where would it live? load_internal? Work? |
Added a unit test for you @smores56 |
let use_main = match header_type { | ||
Package { .. } | App { .. } | Platform { .. } => true, | ||
Module { .. } | Builtin { .. } | Hosted { .. } => false, | ||
}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe localize to the usage site
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Couldn't find a way due to borrow issue without introducing clones
A package that depended on another package would hang forever because nothing registered the other package as a module to load like it would with an App. This fixes that.
Closes #7407