-
Notifications
You must be signed in to change notification settings - Fork 842
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
stack script
ignores local-programs-path
in ~/.stack/config.yaml
#3887
Comments
Worked around this by just symlinking ~/.stack somewhere else altogether. |
Yes, it looks like Pinging @snoyberg should stack script read |
I don't know all of the different options allowed in config.yaml, but I'm imagining some of them should be allowed, and others shouldn't. local-programs-path seems like one that should be parsed by script. |
I've just run into this with It is not obvious that the config isn't read, either. Anyway, I've split the options as far as I can tell into those which are likely safe to read for the Safe, i.e. build may fail on a user’s machine because of that user’s setup
Unsafe, i.e. scripts created with these options set in config.yaml may not be reproducible on systems without the changes they imply
Maybe safe (it’s possible for irreproducible builds? I wasn’t sure)
|
I'm going to make this change |
General summary/comments
Also found #3705, so I assume
stack script
ignores ~/.stack/config.yaml completely.Steps to reproduce
For example:
local-programs-path
to point somewhere else than ~/.stack/programsstack stream-fusion.hs
, where stream-fusion.hs is the attached fileExpected
Just run the thing after initial setup
Actual
Re-downloads GHC 8.2.2 and errors (might be machine-specific) while unpacking it into ~/.stack/programs. Also complains with
The following directories may now contain files, but won't be used by stack <some ~/.stack/programs paths>
, which it wouldn't in the first place.Stack version
Method of installation
Installed 1.6.3 through
nix-env
, but then didstack upgrade
and used the downloaded exe for this reproduction (didn't want to wait for the upgrade of my whole distribution).The text was updated successfully, but these errors were encountered: