-
Notifications
You must be signed in to change notification settings - Fork 701
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
Fix --repl-options parsing #7868
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.
Hi, thanks for the standalone fix, it would need a regression test, but if you have tested manually and it is included in your main pr in some way it would be fine for me.
A changelog entry would be great.
As noted by @bacchanalia the bug is not in any release so the changelog would not be needed and the main pr is already testing it, could you add a brief note about what test is and how is testing the bug? |
In the latest design of #7851, I use replOptionsFlags to pass the script location between cabal-install and Cabal, so either |
The pr (#7578) by @sirlensalot had specific tests so i hope this change will not break the functionality added there. I would ask the pr author to take a look and confirm it, thanks! |
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.
looks good to me given the notes about the changelog and tests, thanks for the fix!
I think the backport of this bug is in 3.6.2 (#7593), ain't it so? |
Wow, I missed it. Well done, team. :) |
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.
Super.
no need for backport then (i was not sure if the bug was backported after the release so thanks for link the closed backport) i would wait some time for the review of the original pr author before merging |
Although I'm not the original author, I can confirm that the commit is correct. I did encounter this problem myself and did a bit of investigation. The original commit (cf 785ea62#diff-793c63febac9c808425678cd5535233aebb1aca838a829a665f85d4452f62346L1766) did the following change
Note that what previously was So the short summary is that previously there were no |
@sergv: thank you for the analysis and confirmation. I think the merge is overdue. Thank you all! |
Sorry for the delay responding, but obviously I concur with it as the author of the bug! Clearly my tests didn't catch this. Indeed my only comment would have been: coverage? Can we get the bugfix covered by a unit test. I wrote a test for my functionality, which clearly didn't cover so I'm assuming this broke other workflows. Can we get coverage for those in a follow-on PR please? |
Happy to help if somebody can give the use-case clearly |
I though this would be covered by the tests in the other PR (#7851) I was working on, but due to code changes in that pr the tests no longer cover this, so we do still need tests for it. |
Bug #7867