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

Ensure x-script's SHA is tolower'd. #1564

Merged
merged 1 commit into from
Jan 9, 2025

Conversation

BillyONeal
Copy link
Member

A large customer took a dependency on our happening to use lowercase SHA512s most of the time, and were broken when recent changes to vcpkgTools.xml contained capitalized SHA512s. This change always lowercases the SHA before invoking the x-script.

A large customer took a dependency on our happening to use lowercase SHA512s most of the time, and were broken when recent changes to vcpkgTools.xml contained capitalized SHA512s. This change always lowercases the SHA before invoking the x-script.
@@ -82,7 +82,6 @@ namespace vcpkg
{
Checks::msg_exit_with_error(VCPKG_LINE_INFO, msgImproperShaLength, msg::value = *p);
}
Strings::inplace_ascii_to_lowercase(p->data(), p->data() + p->size());
Copy link
Member Author

Choose a reason for hiding this comment

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

I think it's safe to make this change unconditionally because we already did it 99% of the time.

BillyONeal added a commit to BillyONeal/vcpkg that referenced this pull request Jan 8, 2025
This is a 'quick and dirty workaround' for a customer who depended on our x-script SHAs in asset caching being lowercase.

The real fix is microsoft/vcpkg-tool#1564 , but this is a change they can use before we can get a tool release out the door.
@BillyONeal BillyONeal merged commit b733d99 into microsoft:main Jan 9, 2025
6 checks passed
@BillyONeal BillyONeal deleted the x-script-lowercase-sha branch January 9, 2025 02:19
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.

2 participants