question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Binaries on windows does have extensions, so checking for `git` existance will fail

See original GitHub issue
  • Cookiecutter version: 1.7.2
  • Template project url: not needed
  • Python version: 3.7
  • Operating System: Windows10

Description:

vcs.py code check for git existance using which(repo_type), which translates to which(git). This won’t work on windows because git does not exist, only git.exe does.

What I’ve run:

cookiecutter.exe  git@github.com:repo/template.git

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
alkuzadcommented, May 11, 2020

@michaeljoseph whichcraft is used conditionally only if shutil.which is not present, but also whichcraft has copy-pasted it’s code so it would also need change.

I’ve opened https://bugs.python.org/issue40592 and we will see, I do know that it may be edge case, but it’s confusing that windows has no problem finding binaries when cc has 😃

0reactions
alkuzadcommented, Oct 31, 2020

merged to 3.8 and up 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

gitignore binary files that have no extension - Stack Overflow
Above combination will ignore all files without extension ### # Ignore ... we check the .gitignore to see if the binary is already...
Read more >
Git Extensions Documentation - Read the Docs
Git Extensions is a toolkit aimed at making working with Git under Windows more intuitive. The shell extension will.
Read more >
Work with large files in your Git repo - Azure - Microsoft Learn
Recommendations on how to manage large binary files in Git, Visual Studio, and Team Foundation Server.
Read more >
git-add Documentation - Git
The git status command can be used to obtain a summary of which files have changes that are staged for the next commit....
Read more >
Writing R Extensions - The Comprehensive R Archive Network
On some platforms (notably macOS and Windows) there are also binary packages, a zip file or tarball containing the files of an installed...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found