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

CheckGitVersion: improve error messages #403

Merged
merged 1 commit into from
Jul 14, 2020

Conversation

derrickstolee
Copy link
Contributor

A user reported issues with parsing our Git version when cloning. Our
best guess of what happened is that the build machine already had a
version of Git, but it was in a different location whan where our brew
formula placed our version of Git. This led the parser to not see a
.vfs. in the version string and fail.

Let's make this error more informative. While we are here, split the
failure condition into two distinct cases:

  1. We can't find Git anywhere.
  2. We can't parse the Git version.

Signed-off-by: Derrick Stolee dstolee@microsoft.com

A user reported issues with parsing our Git version when cloning. Our
best guess of what happened is that the build machine already had a
version of Git, but it was in a different location whan where our `brew`
formula placed our version of Git. This led the parser to not see a
`.vfs.` in the version string and fail.

Let's make this error more informative. While we are here, split the
failure condition into two distinct cases:

1. We can't find Git anywhere.
2. We can't parse the Git version.

Add the GitBinPath to the other error messages in this method.

Signed-off-by: Derrick Stolee <dstolee@microsoft.com>
@derrickstolee derrickstolee merged commit 5711fca into microsoft:main Jul 14, 2020
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