Skip to content

Configure variable set by jbuilder exec #205

Closed

Description

@bobot

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.

Could we add to jbuild file format?

(set-local-exec-env
  ((VAR  <value-with-variable-substitution>) ... )
)

EDIT: forgot a parenthesis for the list

Activity

  1. bobot commented on Jul 27, 2017

    @bobot
    ContributorAuthor

    Do you need anything from me in #35?

  2. self-assigned this
    on Aug 9, 2018
  3. emillon commented on Aug 13, 2018

    @emillon
    Collaborator

    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!

  4. bobot commented on Aug 15, 2018

    @bobot
    ContributorAuthor

    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.

  5. added a commit that references this issue on Oct 24, 2018
    5479f2e
  6. added a commit that references this issue on Dec 31, 2018
    ec51789
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions