Skip to content

Choco package dependency on git is a problem #983

@adaviding

Description

@adaviding

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions