alire-project / alire

Command-line tool from the Alire project and supporting library
GNU General Public License v3.0
288 stars 49 forks source link

How to explicitly declare to build an executable? #997

Open pjljvandelaar opened 2 years ago

pjljvandelaar commented 2 years ago

Dear Alire developers,

My crate builds an executable. Yet, running alr run --list yields

Crate dependency_graph_extractor does not explicitly declares to build any executable
However, the following default executables have been autodetected:
   dependency_graph_extractor.exe (found at C:\path\to\Dependency_Graph_Extractor-Ada\bin\dependency_graph_extractor.exe)

I was unable to find documentation to explicitly declare to build a list of executables.

Also the hello project yielded no answer / useful example:

PS C:\temp\hello_1.0.1_dcc36a2f> alr run --list
Crate hello does not explicitly declares to build any executable
No default executable has been automatically found either by alr

Thanks in advance for your answer / improvement of documentation & examples.

Pierre

mosteo commented 2 years ago

executables property, see here: https://github.com/alire-project/alire/blob/master/doc/catalog-format-spec.md

pjljvandelaar commented 2 years ago

When there is a good reason why the hello crate doesn't use the executables property, feel free to close this issue!