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

ToolCache: Better explain errors. #1099

Merged

Conversation

autoantwort
Copy link
Contributor

@BillyONeal
Copy link
Member

The test failures look legitimate, so I'm drafting this for now.

@BillyONeal BillyONeal marked this pull request as draft June 15, 2023 21:19
@autoantwort autoantwort force-pushed the feature/tool-cache-better-errors branch from 3ab1e37 to f767c57 Compare June 16, 2023 11:58
@autoantwort autoantwort marked this pull request as ready for review June 16, 2023 11:59
Optional<PathAndVersion> find_first_with_sufficient_version(MessageSink& status_sink,
const ToolProvider& tool_provider,
const std::vector<Path>& candidates,
Func&& accept_version) const
Func&& accept_version,
Func2&& log_candidate) const
Copy link
Member

Choose a reason for hiding this comment

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

This should not be &&, because if it is an rvalue, calling it might 'destroy' it.

Yes I know the other one is already wrong.

It should get a comment describing the call interface.

include/vcpkg/base/expected.h Outdated Show resolved Hide resolved
src/vcpkg/tools.cpp Outdated Show resolved Hide resolved
@BillyONeal BillyONeal merged commit 1ff720f into microsoft:main Jul 7, 2023
5 checks passed
@BillyONeal
Copy link
Member

Thanks!

@autoantwort autoantwort deleted the feature/tool-cache-better-errors branch July 10, 2023 14:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Binary caching with AWS fails with message: Could not fetch aws
3 participants