-
-
Notifications
You must be signed in to change notification settings - Fork 706
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 Issue 21722 - toString(sink, string format) does not work with non-"%s" strings #7870
Conversation
|
Thanks for your pull request and interest in making D better, @berni44! We are looking forward to reviewing it, and you should be hearing from a maintainer soon.
Please see CONTRIBUTING.md for more information. If you have addressed all reviews or aren't sure how to proceed, don't hesitate to ping us with a simple comment. Bugzilla references
Testing this PR locallyIf you don't have a local development environment setup, you can use Digger to test this PR: dub run digger -- build "master + phobos#7870" |
|
Thanks! However |
Huh, why? I thought, stable is only for regressions? |
|
Regressions and minor bug fixes. I think this would have qualified (and I sure would have loved to have it in the next LDC release). Another thing : The same bug exists with |
|
@berni44 even though currently the [*]: Of course, what is a safe bug fix requires judgement, and reasonable people may disagree, but you'd find that there's a category of bug fixes that generally everyone will agree are safe. For this particular case, I'd personally go for master, since it seems like it's enabling new functionality, but if it targeted stable, I wouldn't be against as well. If stable was released more often (e.g. 2.096.1, 2.096.2, 2.096.3, 2.096.4, 2.096.5, 2.096.6, ..., 2.097.0) you would certainly see more push to include fixes there, as it would be the fastest way to deliver fixes to users. Currently, since many bug fixes still target master, users are forced to use master if they need those bug fixes, but as you know all deprecations, removals and in general any intentional or non-intentuonal breaking change happens there as well, so it's kind of risky in principle. |
Hmm. Difficult. I have yet no clear picture, which fixes should go there, and which not... (Makes me feel like "don't fix anything, then you can't go wrong", which of course is not a good idea.)
There is an other reason (although I didn't think of this yesterday, because it didn't occur to me, that stable might be a possible target), for targeting master in this case: Due to the split of std.format, I see a high risk, that this bugfix would be lost, when stable and master are merged (especially, when there are more than one of these, because in practice, git will only tell, that there is a conflict, showing a large bunch of code, that has been removed and an empty part, and @MartinNowak would be required to draw in all these changes once more manually); that's why I waited for the split to be finished, before going for bug fixes in std.format (though in my thoughts it involved two PRs targeting master and me who would have to do this manually, but it's the same problem). |
If you're unsure where to put bug fix, you can always go for master, as all bug fixes eventually will be merged there. But I agree that we should have list of guidelines to make the decision making process more straightforward.
Indeed that's a very good reason for targeting master for
BTW, anyone can merge stable into master (e.g. using this script) and furthermore the best practice is to immediately open a PR to merge stable into master, after something was merged to stable, in order to keep the number of commits only present in stable as low as possible (hopefully zero). |
No description provided.