no git submodule support in nrf toolchain

Late yesterday I discovered that the nrf command line tools includes its own version of git. A version that does not include git-submodule! Git submodules are integral to all of the other development work that I do.  Adopting west in my other work is not an option.

Might I please suggest including a full version of git so this avoids presenting issues to other developers?

  • That's two conflicts with the normal shell environment that I use:

    • No git submodules
    • On MacOSX, vscode started from a shell environment that includes anaconda does not build multiimage examples (like anything for the nrf5340).

    A solution for me that is easy to remember and might be useful to others is having two conda environments:

    1. My default "base" environment that includes anaconda as well as a full git.
    2. An "nrf" environment that includes the nrf command line tool chain but excludes anaconda.

    Setting up the second environment is easy.

    conda create -n nrf # an empty non-cloned environment
    

    To set or update the path for the nrf environment, but executed from the default "base" environment:

    conda deactivate # take anaconda out of default environment
    conda env config vars unset PATH -n nrf
    conda env config vars set PATH=/opt/nordic/ncs/toolchains/v2.2.0/bin:"${PATH}" -n nrf
    conda env config vars list -n nrf # to verify
    

    When wanting to do nrf work, including starting related vscode sessions:

    conda activate nrf

    is issued in the corresponding shell.

Related