gitadaalire

Alire fails with error when building project


I am following the steps here https://pico-doc.synack.me/ to create a simple Ada program to flash a LED on the Raspberry Pi but have come across an issue when building with Alire.

Using the above steps, running either:

alr with pico_bsp

or

alr build

the following error is returned:

error: Could not add community index: Command ["git", "submodule", "update", "--init", "--recursive", "--progress"] exited with code 1

Is there something missing from the above git command that Alire runs? (sudo-running these commands returns the same error)

Searching for this exact error yields zero results.

I am on Ubuntu 16.04 and have the git command that comes with that.

Any ideas/pointers would be greatly appreciated.

Thanks


Solution

  • I think this is because Ubuntu 16.04 includes a fairly old version of git that does not support the --progress flag to the git submodule update command. I've opened an issue against Alire to see if we might be able to remove this flag.

    In the meantime, I'd recommend upgrading git to the latest version. You may also want to consider a more recent Ubuntu version as Alire hasn't been tested extensively on older releases. Alire's integration tests are currently run on Ubuntu 20.04.