winget-cli icon indicating copy to clipboard operation
winget-cli copied to clipboard

Command line tools disappear from PATH after upgrading them

Open equeim opened this issue 2 years ago • 4 comments

Brief description of your issue

After upgrading sharkdp.fd and BurntSushi.ripgrep.MSVC using winget upgrade they disappeared from PATH. I managed to fix it by manually uninstalling and reinstalling them (using winget uninstall and winget install.

Steps to reproduce

  1. Upgrade

Expected behavior

Executables remain in PATH

Actual behavior

Executables disappear from PATH

Environment

Windows Package Manager v1.8.1911
Copyright (c) Microsoft Corporation. All rights reserved.

Windows: Windows.Desktop v10.0.22631.4112
System Architecture: X64
Package: Microsoft.DesktopAppInstaller v1.23.1911.0

equeim avatar Sep 09 '24 19:09 equeim

Bumping up, I have same issue with other packages:

  • Helm. Helm
  • Kubernetes.kubectl

Reproducing:

  1. Install Helm. Helm
  2. See PATH variable definition - all OK C:\Users\****\AppData\Local\Microsoft\WinGet\Packages\Helm.Helm_Microsoft.Winget.Source_8wekyb3d8bbwe\windows-amd64 found
  3. winget upgrade --all (when update is available)
  4. PATH no longer contains requried entry

@equeim , I would like to suggest better wording:

"Executables disappear from PATH" --> "PATH for packaged executable is removed from PATH list definition"

jkruza avatar Jan 06 '25 20:01 jkruza

Previously reported here: https://github.com/microsoft/winget-cli/issues/4044, still no updates 😞

curioussabhi avatar Jan 14 '25 15:01 curioussabhi

Duplicate of #4044

Trenly avatar Oct 10 '25 18:10 Trenly

Hello @@equeim,

We've identified this as a duplicate of another issue or PR that already exists. This specific instance is being closed in favor of the linked issue. Please add your 👍 to the other issue to raise its priority. Thanks for your contribution!

Template: msftbot/duplicate/closed