-
Notifications
You must be signed in to change notification settings - Fork 722
Fix incomplete-record-selection warning in cabal-install #11208
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
base: master
Are you sure you want to change the base?
Fix incomplete-record-selection warning in cabal-install #11208
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I had a more principled way to fix it in mind initially leveraging the fact that repoTarballPkgsWithMetadata
only contains secure, so, named, repositories by construction. But I didn't find time to implement it, so maybe we should just go ahead with this patch.
A little help for future generations may be to leave a comment that all repos here are secure ones and will have a name so we're sorting Just
s, so that should not have any surprises.
I suspected this might be the case, but I was trying to keep it consistent. I'm happy to iterate on this a bit more. |
thanks @sgillespie for adding the comment! You're now welcome to add a merge label so that the bot handles it onwards. You probably want the "squash+merge" label since the second commit is logically attached to the first. |
I attempted the |
2beb057
to
2b0c150
Compare
hey @sgillespie! Sorry for radio silence here. I was looking at your latest patch. While sensible on its own, it adds a bit of redundancy in the When reading your patch, I realized that there's already a |
b68e241
to
b0390ab
Compare
There's already a total `repoName` that returns `remoteRepoName` for remote repos. Resolves: haskell#11208
b0390ab
to
de8c1b5
Compare
Thanks for the suggestion! As far as I can tell, that works for me here. I've applied that and rebased away all of my other attempts. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Terrific, thanks! The merge bot will take care of it by the end of the week.
Fixes #11173
I couldn't seem to find a reliable way to test this, either with the integration tests or checking the build plan. Feel free to let me know if there's a better way.
Template B: This PR does not modify behaviour or interface
E.g. the PR only touches documentation or tests, does refactorings, etc.
Include the following checklist in your PR: