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

[versioning] Add message when vcpkg is cloned to a shallow repository #737

Merged
merged 5 commits into from
Oct 12, 2022

Conversation

vicroms
Copy link
Member

@vicroms vicroms commented Oct 9, 2022

Appends an additional error message when a built-in repository error occurs and vcpkg is cloned into a shallow repository.

Rough implementation.

Improvements to how we handle versioning errors can be made but I believe is better to wait until #556 is merged to make more extensive changes.

On baseline not in git history:
image

On version not in git history:
image

src/vcpkg/vcpkgpaths.cpp Outdated Show resolved Hide resolved
src/vcpkg/vcpkgpaths.cpp Outdated Show resolved Hide resolved
src/vcpkg/vcpkgpaths.cpp Outdated Show resolved Hide resolved
@autoantwort
Copy link
Contributor

If not done: We should also check if VCPKG_ROOT is a git repo at all. Some users download the repo instead of clone it.

src/vcpkg/base/git.cpp Outdated Show resolved Hide resolved
src/vcpkg/vcpkgpaths.cpp Outdated Show resolved Hide resolved
@BillyONeal
Copy link
Member

BillyONeal commented Oct 10, 2022

On version not in git history: image

I think we should get rid of the "failed to tar port directory" part of this message since that's already implied by the message?

Co-authored-by: Billy O'Neal <bion@microsoft.com>
@vicroms vicroms changed the title [telemetry] Add message when vcpkg is cloned to a shallow repository [versioning] Add message when vcpkg is cloned to a shallow repository Oct 11, 2022
@vicroms
Copy link
Member Author

vicroms commented Oct 12, 2022

Output cleanup will be made in a separate PR since it will conflict with ongoing localization efforts by Javier

@vicroms vicroms merged commit 542716f into microsoft:main Oct 12, 2022
@vicroms vicroms deleted the detect_shallow_clones branch October 12, 2022 02:25
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.

4 participants