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

Fix Configure Submodule Checkout on Windows #3812

Conversation

iguessthislldo
Copy link
Member

@iguessthislldo iguessthislldo commented Oct 18, 2022

If doing a normal build on Windows with no git installed on the PATH, the configure script's which function will erroneously report there is a git command available and try, but fail, to use git to get the commit hash needed for RapidJSON.

The which function is erroneous because it is using -x, which seems to return true for directories on Windows. There is a Git directory in the PATH that Visual Studio adds that it's picking up. As a side note this actually has a working git command in it, but since it's not on the PATH I'm not sure if we should try to take advantage of it.

Even with these fixes there's still an issue with the 3.22.0 zips because they're missing the .gitmodules file.

If doing a default build on Windows with `configure` in the Visual
Studio Developer Command Prompt and no git installed on the PATH, the
configure script's `which` function will erroneously report there is a
git command available and try, but fatally fail, to use git to get the
commit hash needed for RapidJSON.

which is erroneous because it is using `-x`, which seems to return true
for directories on Windows. There is a `Git` directory in the PATH that
Visual Studio adds that it's picking up. As a side note this actually
has a working git command in it, but since it's not on the PATH I'm not
sure if we should try to take advantage of it.
@simpsont-oci simpsont-oci merged commit 4668bc2 into OpenDDS:master Oct 21, 2022
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.

None yet

3 participants