Skip to content

project: stop defaulting west init to upstream Zephyr#954

Draft
marc-hb wants to merge 1 commit into
zephyrproject-rtos:mainfrom
marc-hb:no-default-mf
Draft

project: stop defaulting west init to upstream Zephyr#954
marc-hb wants to merge 1 commit into
zephyrproject-rtos:mainfrom
marc-hb:no-default-mf

Conversation

@marc-hb

@marc-hb marc-hb commented May 24, 2026

Copy link
Copy Markdown
Collaborator

Stop defaulting west init to west init -m https://github.com/zephyrproject-rtos/zephyr/. The argument must be passed explicitly.

Thanks to argparse, a bare west init now errors like this:

usage:

  west init [-m URL] [--mr REVISION] [--mf FILE] [-o=GIT_CLONE_OPTION] [directory]
  west init -l [--mf FILE] directory

west init: error: one of the arguments -m/--manifest-url -l/--local is required

This is part of the wider effort to make west independent from Zephyr: #246

This should also help nudge people towards creating their own manifests, which will mitigate Zephyr's "tragedy of the commons" where many people want their stuff to be present the default upstream manifest, while also complaining that the default is way too big and slow (currently around 10 Gigabytes)

Stop defaulting `west init` to `west init -m
https://github.com/zephyrproject-rtos/zephyr/`. The argument must be
passed explicitly.

Thanks to argparse, a bare `west init` now errors like this:

```
usage:

  west init [-m URL] [--mr REVISION] [--mf FILE] [-o=GIT_CLONE_OPTION] [directory]
  west init -l [--mf FILE] directory

west init: error: one of the arguments -m/--manifest-url -l/--local is required
```

This is part of the wider effort to make west independent from Zephyr:
zephyrproject-rtos#246

This should also help nudge people towards creating their own manifests,
which will mitigate Zephyr's "tragedy of the commons" where many people
want their stuff to be present the default upstream manifest, while also
complaining that the default is way too big and slow (currently around
10 Gigabytes)

- zephyrproject-rtos/zephyr#91061
- zephyrproject-rtos/zephyr#108783 (comment)

Signed-off-by: Marc Herbert <Marc.Herbert@gmail.com>
@marc-hb

marc-hb commented May 24, 2026

Copy link
Copy Markdown
Collaborator Author

Kept as draft because it git-conflicts with #953 which should go first. But the discussion can start.

@marc-hb marc-hb marked this pull request as ready for review May 24, 2026 16:06
@marc-hb marc-hb marked this pull request as draft May 24, 2026 16:06
@codecov

codecov Bot commented May 24, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 86.35%. Comparing base (1e42087) to head (b1bc2b1).
✅ All tests successful. No failed tests found.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #954      +/-   ##
==========================================
+ Coverage   86.29%   86.35%   +0.05%     
==========================================
  Files          11       11              
  Lines        3481     3481              
==========================================
+ Hits         3004     3006       +2     
+ Misses        477      475       -2     
Files with missing lines Coverage Δ
src/west/app/project.py 81.72% <100.00%> (+0.19%) ⬆️

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.

1 participant