-
Notifications
You must be signed in to change notification settings - Fork 2.7k
t/test-lib.sh: is modified when starting Visual Studio, with the open folder git
mechanism
#3518
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
Comments
It is by design. From the commit message of the commit 7f5397a you yourself linked:
|
On 05/11/2021 14:47, Johannes Schindelin wrote:
It is by design. From the commit message of the commit 7f5397a
<7f5397a>
you yourself linked:
NOTE: t/test-lib.sh is only modified when tests are run not during
the build or configure.
However, I didn't run any tests at the point the t/test-lib.sh was
modified.
From my perspective, I had only loaded git into Visual Studio, which
includes the build, but doesn't run any tests.
So where is the 'only when tests' design step from opening the project
on VS - its seems to contradict the 'NOTE'?
…--
Philip
|
Yes, I think that this comment might have been stale, as it is the CMake configuration that modifies the file. In any case, your complaint is that that file is modified to begin with, and I wish there was a better way. But nobody involved in the review process could think of any other way to do this. After all, it is kind of a Catch-22 for |
Thanks for the clarification. I'd written a reply earlier but I accidentality closed the tab before sending, without noticing. I was having a think about ideas for having an |
I think you're on to something, you just need to chisel away all the unnecessary complexity. If we introduced an optional file, living in |
This maybe an 'It is what it is' situation, and just needs some notes in the wiki.
Setup
defaults?
Defaults, except for editor Notepad++
to the issue you're seeing?
I'm using both the regular Git for Windows
make
andmake install
method for building my local git patches, and also browsing the git code using Visual Studio, via the open folder route (implies usingCMake
).Details
bash
Minimal, Complete, and Verifiable example
this will help us understand the issue.
I was not expecting the t/test-lib.sh to be modified.
I'd seen the change in previous days, but was just browsing the code rather than patching, building and testing, so at that time it was just a mild ('unknown') annoyance.
t/test-lib.sh was modified.
This prevents the normal testing of the patched git because the
t/test-lib.sh
, implicit in the test scripts, can't find the installedgit.exe
.(shifting to the sdk bash)
But I had built
git.exe
;-)URL to that repository to help us with testing?
n/a
check the changes
This change appears to be from
C:\git-sdk-64\usr\src\git\contrib\buildsystems\out\build\x64-Debug\CTestCustom.cmake
from commits:
7f5397a
c4b2f41
.. which is not an area I'm familiar with (
CTest
?).Return the file to expected state (relative to plain vanilla SDK
make
usage:.. from the top level directory (
cd -
, possibly).Test now runs successfully!
Should there be other ways of directing when this change happens, or is restored?
Maybe the option of a
--Ctest
, or--VSbuild
of the test script options that would allow the shift to the alternate 'install directory we've used for Visual Studio CMake, or something like that. It may have too many catch 22 gotchas to be worth changing, and simply document the issue and reasons...The text was updated successfully, but these errors were encountered: