Should "west init" run "west clone"?
See original GitHub issueRight now, installing multi-repo Zephyr takes the following steps:
$ pip install west
$ west init <west-workspace>
$ cd <west-workspace>
$ west fetch
This issue tracks whether “west init” should run “west fetch” as well after cloning west and the manifest, to eliminate the last step before a complete installation is cloned.
I am ambivalent about this idea (generally speaking I don’t like to add features to the bootstrapper) but thought it was worth recording the question (and its resolution along with rationale).
Reasons for:
- one less step during installation
Reasons against:
- adds a feature to the bootstrapper which is not necessary
- users might want to fetch with different options than can be passed to init, e.g. to fetch a subset of available projects
- fetch might require different credentials than init, which might not be available at init time
Issue Analytics
- State:
- Created 5 years ago
- Comments:8 (5 by maintainers)
Top Results From Across the Web
Basics - Zephyr Project Documentation
This command creates a west workspace. ... West doesn't change your manifest repository contents after west init is run. Use ordinary Git commands ......
Read more >Built-in commands — Zephyr Project Documentation
west init . This command creates a west workspace. It can be used in two ways: Cloning a new manifest repository from a...
Read more >west - PyPI
west update clones the other repositories named in the manifest file, ... After running west init, you can run them from anywhere under...
Read more >Build SOF with Zephyr — SOF Project 2.2 documentation
Running this command will: Initialize west to the ./sof/west.yml manifest if it is not already initialized. Clone and check out projects to ...
Read more >`west` Zephyr extensions 'build' and 'flash' not found in ...
As I understand, west init initializes a cloned project as a west workspace. Therefore I am calling west build ... inside a valid...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I think we should keep
west init
andwest update
seperate.Reason: It allows users to do
west init
and then actually adjustwest.yml
to their needs if they wish so, before runningwest update
If users wants a one step approach, they can do:
west init; west update
orwest init && west update
depending on their platform.Alright, I’m going to close this again since we all seem to agree, or at least nobody disagrees out loud 😃