After fixing the issue reported here #252 I came across another problem:
I have three projects: "game", "addon1" and "addon2". "game" declares a dependency on "addon1" and "addon1" declares a dependency on "addon2". Running godotenv addons install on the "game" project only installs the "addon1".
This happens because the CacheAddon method in the AddonsRepository.cs file (line 164) returns the combined path+subfolder, but the addons.jsonc file on the "addon2" lives in the path, not the subfolder.
Locally I've fixed it by simply doing return addon.Url; when addon.IsSymlink == true instead of return FileClient.Combine(addon.Url,addon.Subfolder.TrimEnd(FileClient.Separator));
After fixing the issue reported here #252 I came across another problem:
I have three projects: "game", "addon1" and "addon2". "game" declares a dependency on "addon1" and "addon1" declares a dependency on "addon2". Running
godotenv addons installon the "game" project only installs the "addon1".This happens because the
CacheAddonmethod in the AddonsRepository.cs file (line 164) returns the combined path+subfolder, but the addons.jsonc file on the "addon2" lives in the path, not the subfolder.Locally I've fixed it by simply doing
return addon.Url;whenaddon.IsSymlink == trueinstead ofreturn FileClient.Combine(addon.Url,addon.Subfolder.TrimEnd(FileClient.Separator));