Skip to content

Feature request: Option to make a compiler available for all users #3935

Closed
@ygale

Description

@ygale

On a build server used by many devs, the number of compilers installed by stack is basically O(n^2) - number of compilers needed times number of devs.

Proposal:

  • Support a global programs directory in the same place where the global config.yaml lives, e.g. /etc/stack/programs.
  • The global programs directory is structured the same way as the user programs directory (e.g. ~/.stack/programs).
  • If stack doesn't find the compiler it is looking for in the user programs directory, then instead of immediately failing it first looks in the global programs directory.
  • The --global option to stack setup tells stack to install the compiler in the global programs directory instead of the user programs directory.

Notes:

Metadata

Metadata

Assignees

No one assigned

    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