Unable to set Git-Dependency in package.json

I’m trying to convert some of my code into a package.
This code depends on a webp-project on GitHub, that’s used to import .webp-images after they’ve been downloaded.

However, when setting the Git-URL as a dependency in my package.json, I keep getting errors on the manifest (in the inspector).

Github page: GitHub - netpyoung/unity.webp: 🎨 WebP made easy for Unity3d
KvP as stored in manifest.json after adding it via the Package Manager:
“com.netpyoung.webp”: “unity.webp/unity_project/Assets/unity.webp at master · netpyoung/unity.webp · GitHub

Copying the KvP from the manifest.json into the dependencies in my package.json results in the following error:

as far as I can tell, this should work according to the docs: Unity - Manual: Git dependencies

Can anyone help me to fix this dependency?

Hi @SF_FrankvHoof ,

Unfortunately Git dependencies between packages are not supported yet. Only Git dependencies specified in the project manifest.json are supported. This is mentioned in the documentation you linked:

You cannot specify Git dependencies in a package.json file because the Package Manager does not support Git dependencies between packages. It only supports Git dependencies for projects, so you can only declare Git dependencies in the project’s manifest.json file.

Unfortunately, there’s no ETA for this feature at this time, but I invite you to submit your feature request on this page, under the Package Management tab, by using the Submit a new idea! tile.

1 Like

It was the issue since 2019 https://discussions.unity.com/t/732000

And I wish I could see the tile about this issue already in that idea link. Seriously disappointed that it was not being progressed at all and you people never even do anything, not even put the tile there yourselves

2 Likes