You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Some tools need to access files in its own share directory. The path to its share module once installed is often hard coded in the binary, but an environment variable allows to change this value. In order to be able to use jbuilder exec with such tools we need to set the environment variable.
The simplest version would be to allow (env) to define extra environment variables to be defined during the build and execution. That would be pretty simple to implement, but would make it harder to define per-executable environment variables.
Yes it will. The definition of these variables should allow variable expansions such as the local directory where the share files of some package have been copied locally (in _build as defined in #680).
I'm just wondering if profile in the env stanza could be a "wildcard" to be effective in any profile, just to save some copy-paste perhaps, but it is not needed at first.
Activity
bobot commentedon Jul 27, 2017
Do you need anything from me in #35?
emillon commentedon Aug 13, 2018
Hi @bobot,
The simplest version would be to allow
(env)to define extra environment variables to be defined during the build and execution. That would be pretty simple to implement, but would make it harder to define per-executable environment variables.Would that fit your use case?
Thanks!
bobot commentedon Aug 15, 2018
Yes it will. The definition of these variables should allow variable expansions such as the local directory where the
sharefiles of some package have been copied locally (in_buildas defined in #680).I'm just wondering if
profilein the env stanza could be a "wildcard" to be effective in any profile, just to save some copy-paste perhaps, but it is not needed at first.Document this feature
Set environment variables through the workspace (ocaml#1147)