-
Notifications
You must be signed in to change notification settings - Fork 96
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
[WIP] Enable upgrading only specified repos #527
base: master
Are you sure you want to change the base?
Conversation
Signed-off-by: Fabio Utzig <[email protected]>
Reimplement support for `newt upgrade <repo1> <repo2>...`. Not specifying repos upgrades everything; specifying repos update only the ones given, without upgrading/installing its dependencies, etc. This should allow advanced users to install only what is required, eg. if developing an app for nrf52x one could simply run: `newt upgrade --depth=1 apache-mynewt-core apache-mynewt-nimble nordic-nrfx` This is also useful for CI, eg, for MCUboot it's possible to use MCUboot as the root project and run: `newt upgrade --depth=1 apache-mynewt-core nordic-nrfx mbedtls` And this brings down the complete download from 1GB to just around 250MB. Signed-off-by: Fabio Utzig <[email protected]>
Hmmm OK, CI passed now because I fixed the dependency graph when passing |
5f32ab8
to
0f29d1c
Compare
Fix dependency graph build when no repos were given to `upgrade`. FIXME: squash later Signed-off-by: Fabio Utzig <[email protected]>
0f29d1c
to
affb566
Compare
1efa942
to
0209655
Compare
we also had idea to add include/exclude repo options to project.yml. this way project can be configured to only include certain repositories required for that project or exclude those not needed. nevertheless, this one is also nice to have. |
Cool, I've found some regressions when last testing this, which is the reason for the WIP. I'll try to get back to this today or tomorrow, and will leave a comment once I think it is good for review. |
@andrzej-kaczmarek and @sjanc does this PR do the same with dependent/ignore repos as the most recent commits ? |
yeap, I think it serves same purpose |
Reimplement support for
newt upgrade <repo1> <repo2>...
. Not specifying repos upgrades everything; specifying repos update only the ones given, without upgrading/installing its dependencies, etc.This should allow advanced users to install only what is required, eg. if developing an app for nrf52x one could simply run:
newt upgrade --depth=1 apache-mynewt-core apache-mynewt-nimble nordic-nrfx
This is also useful for CI, eg, for MCUboot it's possible to use MCUboot as the root project and run:
newt upgrade --depth=1 apache-mynewt-core nordic-nrfx mbedtls
And this brings down the complete download from 1GB to just around 250MB.