-
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
Running stack config set resolver X
inside a project modifies the global project's stack.yaml
#2709
Comments
A fix would probably keep the command running in |
Strange, I can't reproduce the issue now using
Not sure what version of stack I was using when I ran into this. :( |
Well, I assume I was using some dev version of stack, that I had built while working on 0bdab6e. Regarding
I guess I confused Consequently closing as "false alarm". If anyone else can reproduce the issue, please reopen. |
This bug has popped up again:
I guess this is a side effect of d0eabec. |
@sjakobi Good catch! I've pushed a fix. |
Thanks for taking care of this but I don't think your fix works at intended. In particular I can't figure out how to apply that I'm also not convinced that the There's also a this debug print statement that should be removed.
|
Oh yeah, I realize that I am now myself confused about the "global project" and the For I really think we need a better terminology here. Maybe call the |
Doh, thanks for catching those mistakes! I've pushed a fix. Yeah, I was indeed thinking that |
Looks good now!
I think it's a bad sign that this issue confuses even the developers, so IMHO the sooner this issue is fixed, the better. I still assume that |
This bug probably crept in during 0bdab6e.
I think I missed that the
Config
that I get fromwithMiniConfigAndLock
doesn't contain any information on the current project, sogetStackYaml
always ends up looking for the global project.I probably won't get around to fixing this until Sunday…
I also think that it would be good to have safeguards against bugs like this, for example by assigning different types to
Config
s fromMiniConfig
s andBuildConfig
s or something similar.The text was updated successfully, but these errors were encountered: