Blady
1
I want to publish a crate of an executable (EB) whose some generated Ada sources depend of an other executable (EA) which is also a crate.
In the alire.toml of EB I add the dependance of EA and its invocation as post-fetch actions:
[[depends-on]]
EA = "1.0.0"
[[actions]]
type = "post-fetch"
command = ["EA", "-i", "-v", "Courbes_Mesg"]
But, obviously, EA is not built and found.
How to get EA built and how to invoke it properly?
I update PATH environment variable to in EA’s alire.toml like
[environment]
PATH.append = "${CRATE_ROOT}/bin"
Blady
3
Thanks for the tip.
I can now find EA but how to get EA built before post-fetch in EB?
Blady
4
In alire.toml of EB, I added:
[[actions]]
type = "post-fetch"
command = ["alr" , "install" , "EA"]
[[actions]]
type = "type = "pre-build"
command = ["sh" , "-c", "$HOME/.alire/bin/EA -i -v Courbes.mesg"]
The actual alire.toml.