Skip to content

Commit

Permalink
fix: no cygwin (#248)
Browse files Browse the repository at this point in the history
* fix: no cygwin

It seems there is a collision between them and the tools included with git for Windows

Cloning into 'private-repo'...
      0 [main] cat (2272) C:\tools\git\usr\bin\cat.exe: *** fatal error - cygheap base mismatch detected - 0x180348408/0x18034C408.
This problem is probably due to using incompatible versions of the cygwin DLL.

* fix: add gnu tools included with git in PATH
  • Loading branch information
lemeurherve authored May 31, 2022
1 parent 85348a6 commit db66183
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions provisioning/windows-provision.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,8 @@ $downloads = [ordered]@{
& "$baseDir\git\cmd\git.exe" config --system core.autocrlf false;
& "$baseDir\git\cmd\git.exe" config --system core.longpaths true;
};
'path' = "$baseDir\git\cmd";
# git cmd and gnu tools included with git as paths
'path' = "$baseDir\git\cmd;$baseDir\git\usr\bin";
'cleanupLocal' = 'true';
'sanityCheck'= {
& "git.exe" --version;
Expand Down Expand Up @@ -253,14 +254,10 @@ $downloads = [ordered]@{
'postInstall' = {
# Installation of make for Windows
& "choco.exe" install make --yes --no-progress --limit-output --fail-on-error-output;
# Installation of cygwin
& "choco.exe" install cygwin --yes --no-progress --limit-output --fail-on-error-output;
};
'sanityCheck'= {
& "choco.exe";
& "make.exe" -version;
# List cygwin tools tools folder (not available in the PATH)
& Get-ChildItem -Path "$baseDir\cygwin\bin\" -Name;
}
};
}
Expand Down

0 comments on commit db66183

Please sign in to comment.