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

Choco package dependency on git is a problem #983

Open
adaviding opened this issue Jan 8, 2025 · 0 comments
Open

Choco package dependency on git is a problem #983

adaviding opened this issue Jan 8, 2025 · 0 comments

Comments

@adaviding
Copy link

System Details

  • posh-git version/path: 0.7.3.1
  • PowerShell version: 5.1.26100.2161
  • Git version: 2.47.1
  • Operating system name and version: Win 11 Pro 24H2 26100.2314

Issue Description

The choco package for poshgit has a dependency on another choco page "git", but I already installed Git using winget.

  • I was using git when I first ran choco install poshgit. Because I happened to be using the git binary at the time, your choco package installation failed.
  • Later I was not using git and then choco install poshgit actually worked, but now I have two package management systems that believe they are managing my git installation (winget and choco).

Perhaps you should not have an explicit dependency on the choco page "git". Instead, your script might simply check for an installation of "git" and only attempt to install the choco package if git was not previously installed.

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

No branches or pull requests

1 participant