You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
to change my stack.yaml from a different resolver. This works if stack solver has to apply other changes (extra-deps for example). But if the yaml requires no change but the resolver field, then stack solver says:
test -z "$STACK" || echo "resolver: lts-1.0" > stack.yaml # dummy value
test -z "$STACK" || stack solver --update-config --resolver "$STACK"
Selected resolver: lts-3.22
Using configuration file: stack.yaml
Using cabal packages:
- arbtt.cabal
No changes needed to stack.yaml
The text was updated successfully, but these errors were encountered:
Yeah I know it does not work. We do not detect and account a resolver change. I intended to detect the resolver change and recorded it as a todo but never got back to it. Should be easy to fix though, we will have to check if the resolver is different than the one in the config file and treat that as a change right away. Here is the code in Solver.hs:
changed = any (not . Map.null) [newVersions, goneVersions]
|| any (not . Map.null) [newFlags, goneFlags]
if changed then do
$logInfo ""
$logInfo $ "The following changes will be made to "
<> T.pack relStackYaml <> ":"
-- TODO print whether resolver changed from previous
$logInfo $ "* Resolver is " <> resolverName resolver
I tried to use
to change my
stack.yaml
from a different resolver. This works ifstack solver
has to apply other changes (extra-deps
for example). But if the yaml requires no change but theresolver
field, thenstack solver
says:The text was updated successfully, but these errors were encountered: