getPackagesDirectory() function needs to return the input package cache folder, that paket writes to.
By default this is small packages. However in case we have the unity project on the same level as the main project, then unity also has a Packages folder. This exists first, since packages is a cache folder and gets created. However on case-insensitive systems it won't get created since it already exists. In this case paket will use Packages.
So the solution is to use File('packages').canonicalFile since that one would return Packages in case it's on a case-insensitive FS or packages in case it's on a case-insensitive one.
There.... a wall of text explaination for 1 line of code ;)
Changes
broken paketUnityInstall on case-sensitive FS when having a combined unity & main root project
Description
getPackagesDirectory() function needs to return the input package cache folder, that paket writes to.
By default this is small
packages
. However in case we have the unity project on the same level as the main project, then unity also has aPackages
folder. This exists first, sincepackages
is a cache folder and gets created. However on case-insensitive systems it won't get created since it already exists. In this case paket will usePackages
.So the solution is to use File('packages').canonicalFile since that one would return
Packages
in case it's on a case-insensitive FS orpackages
in case it's on a case-insensitive one.There.... a wall of text explaination for 1 line of code ;)
Changes