Skip to content
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

[vcpkg] Delete unused --purge-tombstones and introduce BufferedPrint class #12049

Merged
merged 8 commits into from
Jun 26, 2020

Conversation

BillyONeal
Copy link
Member

Deletes this unused command line parameter and dedupes code that was doing buffer management while printing each package's hash. Hopefully this makes @ras0219 / @ras0219-msft 's life easier with binary caching implementation.

@BillyONeal BillyONeal added category:vcpkg-feature The issue is a new capability of the tool that doesn’t already exist and we haven’t committed info:internal This PR or Issue was filed by the vcpkg team. labels Jun 21, 2020
stdout_buffer.clear();
}
}
~buffered_print() { ::vcpkg::System::details::print(stdout_buffer); }
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Side effects in destructors make me uncomfortable, but since this is a very targeted use case this is acceptable.

@BillyONeal BillyONeal merged commit 309f6fc into microsoft:master Jun 26, 2020
@BillyONeal BillyONeal deleted the buffered_print branch June 26, 2020 19:16
strega-nil pushed a commit to strega-nil/vcpkg that referenced this pull request May 5, 2021
…class (microsoft#12049)

* Introduce buffered_print class to manage buffered write patterns like in the ci command.

* Remove --purge-tombstones option.

* Law of demeter.

* Make buffered_print imobile.

* buffered_print => BufferedPrint

* Fix merge conflict.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category:vcpkg-feature The issue is a new capability of the tool that doesn’t already exist and we haven’t committed info:internal This PR or Issue was filed by the vcpkg team.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants