-
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
Remove debug info from end of an error message (#7248) #7670
Conversation
I believe what could belong in changelog.d would be a file called
Is that correct? Do I do it or does someone else do it? |
I'm happy adding it if that makes your life easier. I obviously didn't know the PR number yet, and didn't know if you preferred the file to be called I looked at other PRs that people were putting in and did not see others adding those changelog.d files, so I did the same. |
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 must confess I have not tested it. I only checked that the variable was still used in the scope so that it would not trigger a warning. |
I also think a changelog entry is unnecessary. A golden test that tries to unpack a hackage package without making it available with |
Would somebody volunteer to add the simple test? |
Two problems remaining: - Warning output is not recorded in the golden value. - The correct warning is not produced yet. Current warning: Warning: No remote package servers have been specified. Usually you would have one specified in the config file.
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.
Since we have a pr with a test, let's not delay this further. Thanks @ivanperez-keera and @andreasabel
@Mergifyio backport 3.6 |
Command
|
The function that informs users that the package list is missing prints an internal data structure at the end of the message, without formatting it. This extra info is likely just left over from debugging and does not need to be printed. This commit just removes that unnecessary show.
Command
|
Two problems remaining: - Warning output is not recorded in the golden value. - The correct warning is not produced yet. Current warning: Warning: No remote package servers have been specified. Usually you would have one specified in the config file.
* Re #7670: WIP: test case for #7248 Two problems remaining: - Warning output is not recorded in the golden value. - The correct warning is not produced yet. Current warning: Warning: No remote package servers have been specified. Usually you would have one specified in the config file. * Re #7670: completed: test case for #7248 * Re #7670: update test output witnessing the fix of #7248 * Re #7670: use cmd 'get' instead of 'unpack' * Re #7670: rename test subdir 'Unpack' to 'Get' * Re #7670: use .invalid domain in test Co-authored-by: Francesco Gazzetta <[email protected]>
The function that informs users that the package list is missing prints
an internal data structure at the end of the message, without formatting
it.
This extra info is likely just left over from debugging and does not
need to be printed.
This commit just removes that unnecessary show.
Please include the following checklist in your PR:
Please also shortly describe how you tested your change. Bonus points for added tests!