-
Notifications
You must be signed in to change notification settings - Fork 124
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
Allow import of optional projects from manifest file #696
Comments
How? You have an allow list |
In this particular case, yes. But I think it would be nice to have using |
@pdgendt Have you given any thought to whether this should be higher or lower precedence than the |
Another question I would like you to answer is: how should this work across This is subtle and tricky. Having Be sure to consider what happens if you import two different projects, with conflicting I seem to recall that complexities of this type are why we did not implement this in the first place. |
Longer story in:
I tried to gather all relevant discussions in
Partial imports
cc: |
@mbolivar-ampere thanks for voicing your concerns, I didn't know the complexity was this deep, so it might not be something we want to bother with adding. It's because of a recent change that the optional group is left out by default, and the "installation instructions" of our projects changed because of that. It would've been nice to update the It also looks quite odd that a project that is added explicitly to the import whitelist, is still ignored. |
What I did was add the "optional" to the group filter in my west.yml, and then use the allowlist to only pull in the specific modules I wanted, both from the main manifest and the optional manifest. Am I misunderstanding what you're trying to do @pdgendt ? |
Is your feature request related to a problem? Please describe.
When using out-of-tree applications, I would like to add optional projects from the application's manifest file.
For example, I use
nanopb
which is an optional package inzephyr
.Describe the solution you'd like
It would be nice to support
project-filter: [+nanopb]
directly from the manifest file.Currently I have to configure a workspace with:
While my
west.yml
already has it in thename-allowlist
:Describe alternatives you've considered
I can add
group-filter: [+optional]
to the manifest file, but this can lead to more projects being updated than necessary if I would useimport: true
instead of an allow list.The text was updated successfully, but these errors were encountered: