-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Unity Package Manager can not resolve packages using git if it was installed through scoop #4317
Comments
tried alt-shim already? |
I don't quite understand. How do I try it? |
here: #3634 (comment) |
Sadly did not help. Both 71 and kiennq have the same problems with Unity. It also doesn't help that Unity is not logging too precisely why it fails. It only reports that it can not find the specified commit. |
add 'env_add_path' property to replace some filed of 'bin' property.
I have not Unity installed, try it yourself. |
Nevermind - go to the bottom that's not struck out. I got the instructions to work.
Edit: Got your instructions to work. It is indeed:
This is the installed copy of git.exe that Unity seems to expect, not the one in You also have to quit out of both Unity and Unity Hub. Unity Hub seems to get the environment when it first starts and pass it to the Unity instances you launch from there. They don't grab it fresh every time. The instructions that worked for me:
If that still doesn't work for you, a work-around to get your dependency loaded is to clone into |
I know this is mainly a Unity Package Manager issue that appeared with one of the latest version 2020.3.2f1 where they also fixed a lot of bugs with the package manager and I also submitted a bug report to Unity but I thought I also submit it here because it specifically only happens if git was installed through scoop.
I think it may has something to do with the fact that scoop uses shims that redirect to the real git.exe but I am not sure.
Here is the issue on the Unity Bug Tracker for a detailed description: https://fogbugz.unity3d.com/default.asp?1328102_lvj454k6ub9k2kj3
The text was updated successfully, but these errors were encountered: