-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Winget doesn't automatically adds a Git environment variable after installing Git in Windows 11 #2815
Comments
Related to:
We're looking at another issue related to environment variables like "Path" that don't get refreshed in an active session. If a package has a dependency on another one and it needs to be on the path for the "primary" package to install, the primary package will fail. In your particular example, if you close the "terminal" and re-open to get the environment variables updated, are you able to call git? |
Thanks for replying. Nope, even after restarting the terminal (and in my case, the machine) doesn't add the appropriate |
I haven't encountered this issue or been able to reproduce it. The "installer" is responsible for adding Path entries. WinGet only adds portable (and in the next version .zip based portable) packages to the path. If you perform a "manual" uninstall and then run If no, which version of git.git was installed, and can you share the logs? The log location is visible via |
Duplicate of #222 |
@protyay we've identified this Issue as a duplicate of another one that already exists. This specific instance is being closed in favor of tracking the concern over on the referenced Issue. Thanks for your report! Be sure to add your 👍 to the other issue to help raise the priority. |
@protyay we've identified this Issue as a duplicate of another one that already exists. This specific instance is being closed in favor of tracking the concern over on the referenced Issue. Thanks for your report! Be sure to add your 👍 to the other issue to help raise the priority. |
Description of the new feature / enhancement
When executing the following command
winget install -e --id Git.Git
, the latest version of Git is installed but no git command can be executed because the environment variablePATH
is not modified to include the Git installation folder.Proposed technical implementation details
We can choose to modify the
PATH
variable and append the Git installation folder to enhance the user experience.The text was updated successfully, but these errors were encountered: