Reputation: 1441
How would I configure stack to use an older resolver by default?
I know the resolver can be specified on the command line at build time and per project in the project configuration or at project creation time. Is there a way to set it so that every new project that I create defaults to a specific older resolver?
I tried configuring stack with stack setup --resolver=lts-15.2
but stack new <projectname>
still defaults to the latest lts resolver.
Upvotes: 2
Views: 652
Reputation: 6200
I set stack's resolver at the global level by modifying ~/.stack/global-project/stack.yaml
. In my case I included the line:
resolver: lts-18.28
Upvotes: 1