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

exec: "git": executable file not found in %PATH% windows stack #1864

Closed
joeymizrahi opened this issue Dec 10, 2019 · 4 comments
Closed

exec: "git": executable file not found in %PATH% windows stack #1864

joeymizrahi opened this issue Dec 10, 2019 · 4 comments
Labels

Comments

@joeymizrahi
Copy link

Tried to push a simple nodejs & python app,
and got the following error:

Waiting for API to complete processing files...

Stopping app...

Staging app and tracing logs...
Cell b98c5e49-291b-46ce-9d30-0f26e504fdf7 creating container for instance c7aca7dc-c018-4ae2-9e35-52dd085de038
Cell b98c5e49-291b-46ce-9d30-0f26e504fdf7 successfully created container for instance c7aca7dc-c018-4ae2-9e35-52dd085de038
Downloading app package...
Downloaded app package (8.1M)
exec: "git": executable file not found in %PATH%
Exit status 1
Cell b98c5e49-291b-46ce-9d30-0f26e504fdf7 destroying container for instance c7aca7dc-c018-4ae2-9e35-52dd085de038
Cell b98c5e49-291b-46ce-9d30-0f26e504fdf7 stopping instance c7aca7dc-c018-4ae2-9e35-52dd085de038
Cell b98c5e49-291b-46ce-9d30-0f26e504fdf7 successfully destroyed container for instance c7aca7dc-c018-4ae2-9e35-52dd085de038
Error staging application: Staging error: staging failed
FAILED

i believe this is happening because i am running with a windows stack.
here is my manifest file:

---
applications:
  - name: bsodTest
    memory: 2GB
    disk_quota: 2GB
    instances: 1
    command: node app.js
    stack: windows2012R2
    buildpacks:
      - https://github.com/cloudfoundry/python-buildpack
      - https://github.com/cloudfoundry/nodejs-buildpack.git
@cf-gitbot
Copy link

We have created an issue in Pivotal Tracker to manage this:

https://www.pivotaltracker.com/story/show/170216587

The labels on this github issue will be updated when the story is started.

@JenGoldstrich
Copy link
Contributor

Hello @cs4242 we are looking into this thank you for reporting it, just an initial check if you want to pull down build packs from git during cf push I believe you'll need git installed and in your path.

@heyjcollins
Copy link
Contributor

@cs4242 - In the interest of project hygiene, I'm going to close out this issue. We're no longer actively developing against the v6 CLI now that the v7 CLI has GA'd. If this issue persists with the v7 CLI, please feel free to re-open with comments and we'll take a look
Thank you,

Josh Collins

@matheusantunesnandi
Copy link

matheusantunesnandi commented Sep 22, 2020

Acabei de instalar a última versão do Git CLI, e este problema ocorreu comigo.

Mensagem mostrada ao executar algo como "gh repo clone https://github.com/xyz/xyz.git":
exec: "git": executable file not found in %PATH%

Usando o explorador de arquivos do windows (Explorer.exe), siga as etapas:
Click direito em "Meu computador" ou "Este computador" > "Propriedades" > "Configurações avançadas do sistema" > "Variáveis de Ambiente"

Dentro de "Variáveis de Ambiente" > "Variáveis do Sistema":
Abra o Path e adicione um novo caminho contendo o diretório onde está o "git.exe".

O meu eu encontrei na pasta particular "Apenas para mim" (Provavelmente escolhida assim na instalação).
C:\Users<seu_usuário>\AppData\Local\GitHubDesktop\app-2.5.5\resources\app\git\cmd\

Após adicionar é necessário clicar em "ok" até fechar tudo e reiniciar o computador ou talvez deslogar e voltar.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants