Skip to content
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

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Commits on Aug 21, 2023

  1. Fix function name in header doc

    Signed-off-by: Fabio Utzig <utzig@apache.org>
    utzig committed Aug 21, 2023
    Configuration menu
    Copy the full SHA
    30e7e83 View commit details
    Browse the repository at this point in the history
  2. Enable upgrading only specified repos

    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 <utzig@apache.org>
    utzig committed Aug 21, 2023
    Configuration menu
    Copy the full SHA
    66be85f View commit details
    Browse the repository at this point in the history
  3. [TESTING] Fix dependency graph when no repos given

    Fix dependency graph build when no repos were given to `upgrade`.
    
    FIXME: squash later
    
    Signed-off-by: Fabio Utzig <utzig@apache.org>
    utzig committed Aug 21, 2023
    Configuration menu
    Copy the full SHA
    affb566 View commit details
    Browse the repository at this point in the history
  4. FIXUP: testing

    utzig committed Aug 21, 2023
    Configuration menu
    Copy the full SHA
    0209655 View commit details
    Browse the repository at this point in the history