How to handle dependencies already installed? #994
Replies: 2 comments 11 replies
-
Hi @pjljvandelaar, GNAT pro and Alire workflows are not always compatible. One option here would be to remove
This is not planed at the moment and I am not even sure if it is doable. I don't think there is a reliable way to get the version of a library in the system or in GNAT Pro install. Alire is a source package manager so it is part of the workflow to build from sources. It has drawbacks and advantages. |
Beta Was this translation helpful? Give feedback.
-
Hi @pjljvandelaar. Another possibility worth a try, if the installed versions have project files with the same name as the alire ones, it's to instruct your users to If project file names do change, you could prepare a proxy project that withed the installed versions, and pin to the proxy project (which should have the proper project names). I haven't tested this particular case, so I'd be interested in knowing if you make it work. Although, removing the dependencies and setting an environment variable as Fabien suggested is probably less work... |
Beta Was this translation helpful? Give feedback.
-
Dear Alire developers,
Many of the users of my alire crate have GNAT Pro and LibAdaLang already installed on their PC.
Building my crate takes quite some time, since the installed version of GNATColl and LibAdaLang are not reused.
In fact, we have regularly problems due to the usage of different versions of libraries in different steps of the build, compile, and release sequence. See e.g. #982 and executions that state
the process exited with status -1073741819
.Users of alire can choose that the gnat version and/or the gprbuild version installed in the environment are used.
Should we also allow users to choose that the GNATColl version and LibAdaLang version installed in the environment are used?
Or could alire detect the dependencies are available in the environement and then use them?
I am curious to your answers!
Greetings,
Pierre
Beta Was this translation helpful? Give feedback.
All reactions