stack upgrade
should always use implicit global project
#1392
Labels
Milestone
stack upgrade
should always use implicit global project
#1392
In particular, this is an issue if the current project uses Docker integration, since the new
stack
binary will be installed in~/.local/bin
in the container (and that binary may not be compatible with the host's platform), which is almost certainly not intended since that stack binary won't ever actually be used.While we could force
stack upgrade
to disable Docker integration, there are cases where the rest of the project'sstack.yaml
don't make sense in a non-Docker context and so it would fail. Therefore, better to just havestack upgrade
always use the implicit global project in~/.stack/global-project
.Steps to reproduce:
stack upgrade
in the projectExpected results:
stack --version
shows that stack has been upgraded on the host.Actual results:
stack --version
on the host is unchanged, since the newstack
executable was only installed in the container.The text was updated successfully, but these errors were encountered: