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 get-bounds subcommand #63
Conversation
Thanks for the contribution! So when I do
|
Hmm, I'm not familiar with % hackage-cli get-bounds *.cabal | head
freckle-app.cabal: Blammo >=0
freckle-app.cabal: Glob >=0
freckle-app.cabal: MonadRandom >=0
freckle-app.cabal: aeson >=0
freckle-app.cabal: aws-xray-client-persistent >=0
freckle-app.cabal: aws-xray-client-wai >=0
freckle-app.cabal: base >=0
freckle-app.cabal: bcp47 >=0
freckle-app.cabal: bugsnag >=0
freckle-app.cabal: bytestring >=0 I'm also not familiar with much of the tool's internals, or why Does |
E.g.
Likely it does not work with named (internal) libraries. If |
Sure, will do. |
This introduces some more duplication with add-bound that may be worth addressing at some point.
Done! |
620ee0c
to
82318fb
Compare
I added a commit that removes some code duplication you introduced in the previous commits. It wasn't hard to do the necessary factoring for this. Maybe next time you can try harder not to do cut-and-paste. Teacher speaking here. I am not sure yet about the code in |
I appreciate the bluntness here, so I feel like I can return in kind: I didn't do those refactors because the code base doesn't appear well-gardened. I see many old patterns ( If you're open to a contributor making bigger changes like that (in terms of diff-size, not functionality), I would be willing to address lints and establish an auto-formatter, though it would of course come with my own opinions. I actually found it impressive that the code was so amenable to copy/paste the way it was. It was extremely easy to follow the compiler from piece to piece, and I kind of marveled at the result. It almost seemed intentionally organized to invite that. I was very happy to add the functionality I needed in the moment, and thought the patch was clean enough to offer up, but I'm not attached to it getting merged. Totally up to you if you'd like to take it as is, take it and address those refactorings (which should be easier for you, familiar with the project's idioms), or simply don't take it.
(edited, because this issue is broader than I agree. This is clearly a kludge due to the fact the tool (overall) doesn't seem to support internal libraries. If it did, then |
I found this useful so that I could (in bulk) address package versions that were released without bounds (due to a bug in
stack upload --pvp-bounds
) by getting the bound used in previous versions (via this new command) before adding and publishing (via existing commands).Example,