I created a package that depends on another package. Both of these packages are on github and are private repositories.
UnityScenePostProcessingPipeline
has a dependency to UnityScriptableObjectContainer
.
The UnityScenePostProcessingPipeline
package.json file contains this dependency:
"dependencies": {
"com.oddworm.scriptableobjectcontainer": "https://github.com/pschraut/UnityScriptableObjectContainer.git#1.0.0"
},
1.0.0
is a tag in the UnityScriptableObjectContainer git repository. I’m able to install the UnityScriptableObjectContainer
package when I use above link https://github.com/pschraut/UnityScriptableObjectContainer.git#1.0.0
via “Add package from git URL…” in Package Manager.
However, when I try to install the UnityScenePostProcessingPipeline
package from git, Unity outputs the following error to the Console window:
Cannot perform upm operation: Unable to add package [https://github.com/pschraut/UnityScenePostProcessingPipeline.git]:
Package com.oddworm.sceneprocessingpipeline@https://github.com/pschraut/UnityScenePostProcessingPipeline.git has invalid dependencies or related test packages:
com.oddworm.scriptableobjectcontainer (dependency): Version 'https://github.com/pschraut/UnityScriptableObjectContainer.git#1.0.0' is invalid. Expected a 'SemVer' compatible value. [NotFound]
UnityEditor.EditorApplication:Internal_CallUpdateFunctions()
If I install UnityScriptableObjectContainer
using the above link through Package Manager first and then UnityScenePostProcessingPipeline
, no error occurs. But I actually want that the editor pulls the dependency automatically rather than asking the user to install various packages in a specific order.
I feel like I’ve tried all combinations I found in the documentation for the dependency URL, all output the same error, I tried:
https://github.com/pschraut/UnityScriptableObjectContainer.git#1.0.0
https://github.com/pschraut/UnityScriptableObjectContainer.git
https://github.com/pschraut/UnityScriptableObjectContainer
git+https://github.com/pschraut/UnityScriptableObjectContainer.git#1.0.0
git+https://github.com/pschraut/UnityScriptableObjectContainer.git
git+https://github.com/pschraut/UnityScriptableObjectContainer
git://github.com/pschraut/UnityScriptableObjectContainer.git#1.0.0
git://github.com/pschraut/UnityScriptableObjectContainer.git
git://github.com/pschraut/UnityScriptableObjectContainer
Any idea what the problem could be?