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

Update stack lts version on fly #545

Open
willbasky opened this issue Jul 2, 2021 · 2 comments
Open

Update stack lts version on fly #545

willbasky opened this issue Jul 2, 2021 · 2 comments

Comments

@willbasky
Copy link
Collaborator

When I set project with summoner I have to update stack's lts version to last one manually. (open stackage.org and edit stack.yaml)
I suggest to make summoner to fetch last lts version on fly as option. Of course who need particular version it rest as an option.

@chshersh
Copy link
Contributor

chshersh commented Aug 3, 2021

@willbasky In the beginning, Summoner used stack new command to create Stack-based projects, and this command fetches the latest LTS. However, this took noticeable amount of time during project scaffolding so we removed this option.

But the more severe concern is that new LTS can come out using newer major GHC before we test it in Summoner and update the code with relevant changes. And this will definitely break all projects created with Summoner after that. In other words, even with an option, you need to implement something smart to use "the correct latest LTS".

@willbasky
Copy link
Collaborator Author

willbasky commented Oct 18, 2021

Thank you for constraints. LTS should be bounded to last tested GHC and not takes much time.
I wonder does stackage have API?
stack likely interact over it, doesn't it?

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