-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
vs/master not building when install-option "Path Option: BashOnly" in use (probably) #2349
Comments
s/ old error ;-)/ odd error ;-)/ finger trouble. Basically, I (think I) need to find the 'proper' method for changing the Path Option (been avoiding looking into this one), so that the cmd window (used by the .bat file) will find the right (acceptable) git.exe, even if it is the C:\Program Files\Git version... |
Indeed, I believe that Of course, you can work around this by extending your |
Just reviewing the installer code. first look through for 'path' and find:
now look for GP_Cmd which is `Git from the command line and also from 3rd-party software', https://github.com/git-for-windows/build-extra/blob/master/installer/install.iss#L2627-L2655
Giving, I hope, sufficient info to modify my path locally. |
Yes. Or looking at what I said at #2349 (comment) |
I think we overlapped by a minute 😉 My main aim was to capture the issue for others so that those who'd used the same install option as me didn't think the vs/master was a failure. |
I've locally added a user feedback 'fix'. Just need to decide where to create the PR patch.
I'll probably also adjust https://github.com/git-for-windows/build-extra/blob/master/installer/install.iss#L1666 to make the '(recommended)' into a red standout. git-for-windows/build-extra#258 |
I let the build run, and a few errors were showing roughly along the lines that zlib, ssl etc weren't right. Like a fool I cleared the window to start a fresh build, and the initial messages are
looking good so far.
Hmm, still errors. More to do. The (again) build Error List window showed
|
So, it looks like the vcpkg.exe is only downloading part of the required files before giving up. (word wrapped for clarity)
Explorer shows So why the Let's delete that .part file and try again, while googling that error! |
well googling "vcpkg winhttpquerydataavailable() failed 12002" top 3 show that vcpkg can be temperamental across slow, intermittent or proxy connections, so simply retry (perhaps removing that .part file in case it's corrupt) and go again. A bit further this time.
Maybe just go again and hope (and review those errors?) |
got past the vcpkg issues. I'm adding a comment
to help folk coming later. However there was still one (probably non-)issue in the compile with one of the .pdb files (line wrapped)
Not sure where the race is. But we have progress. |
path choice: highlight the recommended choice in <RED> This partially addresses git-for-windows/git#2349 where a user wondered why `vs/master` would not build while having a Git for Windows that was installed using the BashOnly path option.
I created a worktree to hold the origin/vs/master to compile git for windows using VS2017. Unfortunately the compilation failed. Probably because the batch file to load the vcpkg dependencies failed to find
git.exe
Arguably it's probably my choice of setup (Path Option: BashOnly), but then again, maybe it should 'just work', or have a better error message on how to 'fix' the PathOption choice.
Setup
defaults?
to the issue you're seeing?
SDK install
Details
Bash, and Win10 double-click
Minimal, Complete, and Verifiable example
this will help us understand the issue.
Windows explorer, navigate to git.sln and double click, starting VS2017. Ignore the upgrade screen.
Build solution
Note that git.exe is not found for this installation.
successful compilation, or at least the down load of the vcpkg and the old error ;-)
see above, git.exe not found.
URL to that repository to help us with testing?
This here repo...
The text was updated successfully, but these errors were encountered: