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

A way to derive a custom snapshot from a stackage snapshot #908

Closed
UnkindPartition opened this issue Sep 3, 2015 · 2 comments
Closed

A way to derive a custom snapshot from a stackage snapshot #908

UnkindPartition opened this issue Sep 3, 2015 · 2 comments

Comments

@UnkindPartition
Copy link
Contributor

tThe custom snapshot wiki page mentions that, when writing a custom snapshot config, one can use cabal.config from stackage.

That's what I did, but some additional work was required:

  • converting from one format (constraints) to another (yaml package-version list)
  • adding flags (for instance, text defaults to using integer-simple and fails)

That last bit is especially annoying, and I belive the flags are already specified in the stackage snapshot; we just need a way to extract them in the right format.

So I propose a command that would convert a stackage snapshot into an equivalent custom snapshot yaml file. That file can then serve as a basis for customization.

@snoyberg
Copy link
Contributor

snoyberg commented Sep 3, 2015

I think #863 will be a better route forward for this, have you seen it?

@UnkindPartition
Copy link
Contributor Author

I haven't seen it before, but I love it!

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

No branches or pull requests

2 participants