Skip to content

Allow the user to specify the STACK_ROOT #142

Description

@haitlahcen

As a user I would like to be able to specify the STACK_ROOT used by stack2nix.
Right now it is hardcoded to /tmp/s2n.

Introducing a S2N_STACK_ROOT environment variable would be helpful.

Activity

  1. haitlahcen commented on Oct 31, 2018

    @haitlahcen
    Author

    I think it would be better if we could forward arguments to stack.

  2. domenkozar commented on Nov 1, 2018

    @domenkozar
    Contributor

    I'd also prefer it to be a command line option, as that makes invocations of stack2nix more reproducible.

  3. haitlahcen commented on Nov 1, 2018

    @haitlahcen
    Author

    Shouldn't we use already defined environment variables from stack then ? Like just STACK_ROOT and then command argument --stack-root ? Maybe having an argument --stack-arguments="--stack-root='...'..." to proxy stack arguments ?

  4. domenkozar commented on Nov 20, 2018

    @domenkozar
    Contributor

    I remember there were issues using the default $STACK_ROOT, but I can't remember what it was. Maybe @jmitchell can chip in why we chose a separate hardcoded value.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions