wooga / atlas-paket

Paket plugin for gradle
https://wooga.github.io/atlas-paket/
Apache License 2.0
0 stars 2 forks source link

Fix for case-sensitive FS while using paket’s `packages` folder #101

Closed pletoss closed 1 year ago

pletoss commented 1 year ago

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 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