Skip to content

CheckGitVersion: improve error messages#403

Merged
derrickstolee merged 1 commit intomicrosoft:mainfrom
derrickstolee:git-version-error
Jul 14, 2020
Merged

CheckGitVersion: improve error messages#403
derrickstolee merged 1 commit intomicrosoft:mainfrom
derrickstolee:git-version-error

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

@derrickstolee derrickstolee requested a review from mjcheetham July 13, 2020 17:59
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