-
Notifications
You must be signed in to change notification settings - Fork 841
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
Add unpack --update-stack-yml #1365
Comments
What's the goal? To generate a stack.yaml? IMHO, this isn't much more convenient than cd-ing into the dir and doing |
from what I understand, @alexanderkjeldaas would like packages:
[...]
- new_unpacked_pj Even if I agree this is a quite common use case, I'm rather -1 on this specific proposal, because I think #115 is a better approach to solve all those common stack management requests |
The #115 proposal is not discoverable. Here's the use case based on my "real needs" today: Some User wants to write a servant-client API. For some reason, the tests fail on a real server. Some User then looked for some stack command to download servant-client. Some User then asked on #haskell what the next steps would be. Some friendly soul informed Some User that the correct next step would be to update the
All was bliss, but if there was a discoverable next step to |
Ah, sorry, I misunderstood the suggestion since your original issue is so light on details. I've also wanted something similar-ish in the past, but not quite a direct unpack. I think this may be a bit too git specific to go directly into stack, but:
The reason for this is that usually I wouldn't want to check in the code of some other package. If you want to modify the code of some dependency, and actually track this change in version control, then it makes more sense to use a submodule or subtree. So, I think the reason I've never felt the need for Particularly since this is a step towards something I'd really like to have (
How about adding |
I would support having a command like If we are adding a The current |
Adding comments from #1978 in order to close that one and keep this one. @angerman wrote: Fair enough. Maybe I'm using it wrong then. I usually use @harendra-kumar wrote: Yeah, it definitely makes sense. We need something for "I want to pull a package from an index and add it as a local dependency package to my project". I think I thought about this before. I am imagining a
Now we can add a With that your workflow will be |
Closing, as we're not going to be adding this to the |
This is a common use case.
The text was updated successfully, but these errors were encountered: