git-secret: Makefile install error 127 when running MINGW64
What are the steps to reproduce this issue?
- Open Git Bash (MINGW64) on Windows 10 Pro
- Run
git clone https://github.com/sobolevn/git-secret.git git-secret - Run
cd git-secret - Run
make build - Run
PREFIX="/usr/local" make install
What happens?
Error 127 shows up:
bn@BENNY-RYZEN MINGW64 /c/dev/projects/git-secret (master)
$ make build
make: Nothing to be done for 'build'.
bn@BENNY-RYZEN MINGW64 /c/dev/projects/git-secret (master)
$ PREFIX="/usr/local" make install
C:/Program Files/Git/usr/bin/sh.exe ./utils/install.sh "C:/Program Files/Git/usr/local"
/usr/bin/sh: C:/Program: No such file or directory
make: *** [Makefile:25: install] Error 127
What were you expecting to happen?
The git-secret tool should be installed successfully.
What versions of software are you using?
Operating system: MINGW64_NT-10.0-19042 BENNY-RYZEN 3.1.7-340.x86_64 2020-10-23 13:08 UTC x86_64 Msys (Windows 10 Pro)
git-secret path: no git-secret
git-secret version: no git-secret
git version: git version 2.29.2.windows.3
Shell type and version: GNU bash, version 4.4.23(1)-release (x86_64-pc-msys)
gpg version: gpg (GnuPG) 2.2.25
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 16 (16 by maintainers)
Commits related to this issue
- Removes `git-secret` job from `make` Closes #722 — committed to sobolevn/git-secret by sobolevn 3 years ago
- Removes `git-secret` job from `make` (#723) Closes #722 — committed to sobolevn/git-secret by sobolevn 3 years ago
@ffflorian can you help with adding Windows to the test setup? We could start getting the linting job to run.
Goal is that we can execute
make installon a Windows machine. I was using MINGW64 on my Windows system to have all the build tools necessary. There even is a GitHub Action which helps setting up MINGW64: https://github.com/marketplace/actions/setup-msys2Hey @sobolevn, I am very happy that you haven’t let me down and that you want to create a pleasant user experience for Windows users. I will think about how to extend your CI setup to include Windows in the testing matrix. 💭
For now, I just want to confirm that I can install “git-secret” just fine when starting my Git Bash with administrator privileges (to get write permissions to “‘C:/Program Files/Git/usr/local”):
Here is everything that it takes:
Now that my problem is resolved, I am closing this issue. See you in another PR! 😀