-
Notifications
You must be signed in to change notification settings - Fork 843
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature request: Option to make a compiler available for all users #3935
Comments
This sounds like a good approach to me. |
I don't quite understand. Doesn't this functionality basically already exist, in the form of the As an added bonus, not only are the compilers shared, but all libraries built in a snapshot package-db are shared as well. https://docs.haskellstack.org/en/stable/GUIDE/#setting-stack-root-location The only potential downside is that users presumably need write access to the shared location in order to use it this way. Is the idea here that users only have read access to the "global programs"? |
STACK_ROOT also isn't safe for multiple `stack` processes to use at the same time, so that would be a problem on a multi-user machine.
|
@DanBurton Right, normally the global @borsboom Yes. And besides that, we want to avoid the complexities of per-user configuration, and shell-script/environment-variable hackery. |
Moved to wishlist https://github.com/commercialhaskell/stack/wiki/Wishlist |
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:
programs
directory in the same place where the globalconfig.yaml
lives, e.g./etc/stack/programs
.programs
directory is structured the same way as the userprograms
directory (e.g.~/.stack/programs
).programs
directory, then instead of immediately failing it first looks in the globalprograms
directory.--global
option tostack setup
tells stack to install the compiler in the globalprograms
directory instead of the userprograms
directory.Notes:
The text was updated successfully, but these errors were encountered: