add 'list' command to query package-version in snapshot#5431
add 'list' command to query package-version in snapshot#5431qrilka merged 1 commit intocommercialhaskell:masterfrom
Conversation
|
I would appreciate any feedback, comments, code review of this. I find this command quite useful - certainly faster than querying stackage.org directly. |
qrilka
left a comment
There was a problem hiding this comment.
LGTM but I guess we need to have an opinion from one of Stack's maintainers as well to merge this in. Also a changelog entry looks to be needed in that case and probably mentioning it in the docs.
|
Also style job error needs to be fixed |
|
Sure, thanks, @qrilka, I will try to get to it soon. (Maybe I will try to check on core library handling too at the same time, though I think it's already quite useful.) |
|
I add a Changelog entry and short documentation. Also fixed the hlint warning, and updated package.yaml. |
36c9b4b to
519754f
Compare
|
I slightly tweaked the documentation and changelog. |
qrilka
left a comment
There was a problem hiding this comment.
I'm OK with merging this but would like to understand the point of FIXME in the code.
Thank you.
- currently not working for core ghc libs with resolver - without a resolver the latest Hackage version is displayed
|
Okay, I dropped the comment, thanks |
|
Great, thanks |
|
Thanks @qrilka for reviewing and helping to get this ready |
|
@juhp, may I clarify how this command is intended to work when no packages are specified at the command line? If I command: it yields a long list of what looks like the packages in If I command: it yields nothing. I was rather hoping it would yield the snapshot specified by Stack's project-level configuration file ( |
|
I believe that is the current behaviour yes. I mean I would like the boot libraries to be listed too, but I didn't manage to wrangle that - if it's straightforward to do that would be great, thanks! (I did briefly mention this deficiency during the review.) And right, the project case seems another edge case - it would be good to fix that too - I wasn't clever enough at the time. (I was aware of this but maybe didn't call it out explicitly here - dunno if my dropped fixme comment was alluding to this.) |
|
@juhp, many thanks. For now. I've updated the online documentation to describe more fully the existing command. |
currently not working for core ghc libs with resolver
Please include the following checklist in your PR:
Please also shortly describe how you tested your change. Bonus points for added tests!