There are some git packages that we want to use through the package manager, however when I try to open the project I get this error
Both git and git-lfs work from the terminal and are installed with apt through the packages available out of the box in on Linux Mint. They are both in /usr/bin.
This is the error itself
COMMAND LINE ARGUMENTS:
/home/nuck/Unity/Hub/Editor/2020.1.6f1/Editor/Unity
-projectpath
/home/nuck/Repositories/Nanokin
-useHub
-hubIPC
-cloudEnvironment
production
-hubSessionId
996b0170-0588-11eb-8965-17548b3d3c0b
-accessToken
Tgtw8TE_vx1uoLqFtdYWgYJsAgDaJoYnAWalZOv3EkU003f
Successfully changed project path to: /home/nuck/Repositories/Nanokin
/home/nuck/Repositories/Nanokin
Using Asset Import Pipeline V2.
Error when executing git command:
- args: checkout, 561339c07f940a0238c43d6cc77c1836373f7fa9
- stdout:
- stderr: git-lfs filter-process: git-lfs: command not found
fatal: the remote end hung up unexpectedly
[Package Manager] Done resolving packages in 4.53s seconds
An error occurred while resolving packages:
Project has invalid dependencies:
com.realgames.dear-imgui: Cannot checkout repository [https://github.com/realgamessoftware/dear-imgui-unity.git]:
Error when executing git command. git-lfs filter-process: git-lfs: command not found
fatal: the remote end hung up unexpectedly
A re-import of the project may be required to fix the issue or a manual modification of /home/nuck/Repositories/Nanokin/Packages/manifest.json file.
[Unity Package Manager (Upm)]
Parent process [480] was terminated
Any ideas? Would like to try Linux for gamedev since it is lighter. Thanks
edit: I believe it is fixed now after making symlinks in /usr/local/bin
$ which git
/usr/local/bin/git
$ which git-lfs
/usr/local/bin/git-lfs
I am using an M1 MacBook Air and installed both git and git-lfs using home-brew. The trouble is, home-brew installs packages to /opt/homebrew/bin/git rather than /usr/local/bin/
I had to create symlinks to all git files in /usr/local/bin/ by running the following commands: