Stack: Support "resolver: nightly"

Created on 27 Apr 2018  Â·  4Comments  Â·  Source: commercialhaskell/stack

I guess this is not really a bug report, but a feature request.

Running stack install --resolver nightly selects the latest nightly resolver, which is great.

Seeing this, I assumed specifying the resolver in the stack.yaml file (resolver: nightly) would achieve the same thing, but alas.

This may not be considered good practice by some, but I like to keep a separate stack.yaml file for the latest nightly instead of using the command line argument.

I couldn't find a discussion about this in the issue tracker nor the documentation, apologies if I missed something.

wontfix

Most helpful comment

I expect any given stack.yaml file to represent a specific, reproducible build plan.

I don't care so much about whether a particular command line invocation always creates the same yaml file. I do not see this practice as "unsafe" in the same way.

All 4 comments

-1

I would be +1 if we adopted the Haskelly convention of giving this option a name that calls out its unsafety. e.g. resolver: unsafe-latest-nightly.

I'd be happy with any name. However I am not sure why you think the name "nightly" is acceptable at the command line then?

I expect any given stack.yaml file to represent a specific, reproducible build plan.

I don't care so much about whether a particular command line invocation always creates the same yaml file. I do not see this practice as "unsafe" in the same way.

I've just encountered this when setting up CI script — in this case, I always want the latest nightly. The best option is to add --resolver nightly to the command line arguments.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

sjakobi picture sjakobi  Â·  4Comments

symbiont-joseph-kachmar picture symbiont-joseph-kachmar  Â·  3Comments

mgsloan picture mgsloan  Â·  3Comments

fizruk picture fizruk  Â·  3Comments

tinkyholloway picture tinkyholloway  Â·  4Comments