Dave Compton
Dave Compton

Reputation: 1441

Is there a way to tell stack that I want to use an older resolver by default?

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

Answers (1)

mherzl
mherzl

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

Related Questions