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

Add 'embeddedsha' to record tested baseline for bundle #273

Merged
merged 2 commits into from
Nov 19, 2021

Conversation

ras0219-msft
Copy link
Contributor

The primary change in this PR is very small: Add $bundle.embeddedsha to enable read-only vcpkg to provide useful error messages around baselines.

While investigating the general problem, I discovered several other functions that were generally 'unsafe' (they depend upon root / ".git"), but in the single context they're used are safe. I therefore refactored things to move those functions closer to their contexts and out of the public VcpkgPaths:: interface.

@autoantwort
Copy link
Contributor

One main aspect of #197 was to get the date of the used vcpkg version for issues. You now always see in the issues how old the vcpkg version is they used to build a port (for example vcpkg version: 1a5075b 2021-11-17 (2 hours ago)). This is very helpful if people are using a (very) old version of vcpkg and you know the failure was fixed in a new version.

This feature gets removed with this PR

@ras0219-msft
Copy link
Contributor Author

ras0219-msft commented Nov 17, 2021

I see, I assumed it was primarily about the commit id. Let me see about adding date information.

Copy link
Member

@BillyONeal BillyONeal left a comment

Choose a reason for hiding this comment

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

As long as @autoantwort is happy I'm happy

@ras0219-msft ras0219-msft merged commit 5a5fdd1 into microsoft:main Nov 19, 2021
@ras0219-msft
Copy link
Contributor Author

I've restored the date display behavior for existing cases, however the read-only bundle probably needs a different treatment (the date information needs to come from somewhere else).

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.

3 participants