-
Notifications
You must be signed in to change notification settings - Fork 126
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
west init
gives wrong config path
for a manifest file in nested directories
#774
Comments
You can make the manifest project path explicit. manifest:
self:
path: orb/private EDIT: Ah the project is |
west init
gives wrong config path
for a manifest file in nested directories
here is the manifest
|
So there are 2 projects? In that case your $ mkdir orb/private
$ west init -l orb/private --mf west.yml |
the problem is that is creates the I want it to be at the top directory above
|
the |
something like that work best
|
Can you open a PR? |
yes I expect more discussion and refactoring... because it's not clear how to use |
To be clear, when you did that you ALSO changed Just got an idea from
The issue is that you're trying to make
(Once you add But we can't have a single parameter be two different things at the same time. As you've discovered, the What your PR #775 seems to propose is to hardcode
EDIT: sorry, 2. was wrong. This would be more flexible than now. But it would less flexible than below and 1. stands. So this problem reminded me of https://download.samba.org/pub/rsync/rsync.1#opt--relative
See how the
This would create
When there is no |
Forgot to ask: after this manual |
yes
regarding #775
I don't have the full context and you do, but the previous behavior should still work the same 🤔 one case that I didn't take into account is if the west.yml file is inside a subdirectory of the repo (is it handled by west in any case? 🤔 ) Ultimately, the solution you propose with the
When modifying I have to hack the west config in CI so that |
I think I misunderstood #775. That's partly because the commit message is mostly a bug report with very little about the new behavior. It should have at least an example of the new behavior. So now I understand you're "hijacking" the Instead of trying to shoehorn two values in some single --option, we could also add some new option. Something like:
Thanks! Are you volunteering? Don't forget we need more test coverage :-)
Thanks! And everything else too? Including all the usual west commands? I want to be really sure this is a problem with the |
when initializing my workspace, i want the manifest file to be located two level below the west top dir, in
orb/private
When initializing with
cd orb && west init -l --mf private/west.yml .
, the west config created is:but then zephyr_module.py from Zephyr 4.0 fails because the manifest isn't in
orb
butorb/private
.If I modify
.west/config
manually, to havepath = orb/private
, then it works.Would it be possible to have the
path
points to the manifest directory, andfile
only take the name of the west file?The text was updated successfully, but these errors were encountered: