Closed
Description
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 globalconfig.yaml
lives, e.g./etc/stack/programs
. - The global
programs
directory is structured the same way as the userprograms
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 globalprograms
directory. - The
--global
option tostack setup
tells stack to install the compiler in the globalprograms
directory instead of the userprograms
directory.
Notes:
- The build server problem can currently be solved by the "symlink hack", but that is awful in many ways.
- It could also be solved by Feature request: like "system-ghc" but for multiple preinstalled versions of ghc #3931, but that requires manual individual configuration for each user, creating IT and support overhead.
Metadata
Metadata
Assignees
Labels
No labels