-
Notifications
You must be signed in to change notification settings - Fork 841
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 runghc --no-config
and --standalone
options
#1388
Comments
When you run a script, it runs within the context of the current project. A workaround for now might be to pass the |
Huh, Github cut off a part of the comment I posted by e-mail. Here's the rest: A workaround for now might be to pass the |
How about a switch that specifies to not load a It'd also be good to have a flag for #1208 , like maybe Then, for ease of use, we might have a flag |
This would be helpful. Since |
That all sounds pretty good to me. |
Just want to note I have some misgivings about using the name |
Sure, |
Just |
stack runghc --standalone
option
stack runghc --standalone
optionstack runghc --no-config
and --standalone
options
Sounds good to me! |
Shouldn't |
Good point! I'd certainly be fine if running as a script interpreter implied a different set of defaults. This would mean that current stack scripts may get broken, but that may well be worth it. |
Potentially the |
+1 on standalone being default. But I don't really care one way or the other as long as we have the ability to enable |
Seems like this is obsolete/fixed now that the new |
I am using
stack
as a script interpreter to run a script that generates the.cabal
file. Problem is, if there is no.cabal
file or if the.cabal
file is empty (as it will be if a script truncates it before writing the output)stack
will complain.Currently I move the
stack.yaml
out of the way and then run the script, then movestack.yaml
back; I have also kept the script in a separate directory to avoid this problem, but both seem to be yucky solutions. I don't understand why astack.yaml
influences the script interpreter behavior, especially when the script interpreter feature works fine with nostack.yaml
at all.The text was updated successfully, but these errors were encountered: