Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Specifying snapshot resolvers inline in stack.yaml #3561

Closed
quasicomputational opened this issue Nov 7, 2017 · 1 comment
Closed

Specifying snapshot resolvers inline in stack.yaml #3561

quasicomputational opened this issue Nov 7, 2017 · 1 comment

Comments

@quasicomputational
Copy link

With the upcoming release, now we can define our own custom snapshots, e.g.:

stack.yaml:
  resolver: foo.yaml
  packages: [foo, bar, baz]
foo.yaml:
  resolver: lts-9.0
  packages: [foo-0.1]

I think it'd be nice to be able to inline the resolver as an object in stack.yaml, since I suspect that there'll be strong ties between the local package sets and the snapshot/resolver (e.g., needing to change ghc-options on old LTSes, some local packages known not to work on some GHC versions). Also, the common case is going to be one stack.yaml and one resolver.

So I'd like something like this:

stack.yaml:
  resolver:
    resolver: lts-9.0
    packages: [foo-0.1]
  packages: [foo, bar, baz]
@mgsloan
Copy link
Contributor

mgsloan commented Nov 7, 2017

Hmm, could do this. It'd probably be best just to finally implement #3330 ! I would prefer to do that rather than making resolver more complex.

So thanks for the idea, but I am going to close this as wontfix. Perhaps I've misunderstood or others would particularly like this idea. In that case, speak up and maybe this can be reopened.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants