This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Setting up nRF Connect SDK: Git clone vs West init

What is the difference between doing

git clone https://github.com/NordicPlayground/fw-nrfconnect-nrf.git
cd fw-nrfconnect-nrf
west init
west update

and

west init -m https://github.com/NordicPlayground/fw-nrfconnect-nrf.git
west update

The first one fails to update, while the second one succeeds.

  • Hi!

    west init creates the .west directory with the config file inside, defining both the path to the manifest-repo and the Zephyr base, like this:

    [manifest]
    path = nrf
    [zephyr]
    base = zephyr

    If you run 

    git clone https://github.com/NordicPlayground/fw-nrfconnect-nrf.git nrf
    west init -l nrf
    west update

    it's the same as your second suggestion. The west init command will create a .west directory locally (-l) with a config file, where the manifest path is nrf.

    Check out section 1.2 of the NCS tutorial for more information about west. 

    Best regards,

    Heidi

Related