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] Restore embedded git hash behind an option. #15472

Merged
merged 1 commit into from
Jan 7, 2021

Conversation

BillyONeal
Copy link
Member

No description provided.

@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 Jan 6, 2021
BillyONeal added a commit to microsoft/vcpkg-tool that referenced this pull request Jan 6, 2021
@JackBoosY JackBoosY self-assigned this Jan 6, 2021
@@ -24,17 +24,15 @@ namespace vcpkg::Commands::Version
;
}

const std::string& version()
const char* version()
Copy link
Contributor

Choose a reason for hiding this comment

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

👍

@@ -55,7 +53,7 @@ namespace vcpkg::Commands::Version
const auto num1 = scan3(version_contents->c_str(), "\"%d.%d.%d\"", &maj1, &min1, &rev1);
Copy link
Contributor

Choose a reason for hiding this comment

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

Noting here that VERSION.txt will need to be copied into the parent repo so that we don't need the submodule at runtime.

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 don't think we need to touch anything about this. When the tool is deployed in binary form there is no version.txt which means this check is disabled. (The if on line 50 protects it)

But in registries world we can't ever make the kinds of changes this was trying to protect against anyway so I'm not sure it matters....

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'm going to merge this as-is for now and introduce vcpkg_minimum_required as another PR.

@BillyONeal BillyONeal merged commit d1ef42c into microsoft:master Jan 7, 2021
@BillyONeal BillyONeal deleted the add_hash branch January 7, 2021 20:51
strega-nil pushed a commit to strega-nil/vcpkg that referenced this pull request May 5, 2021
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.

3 participants