Search Issue Tracker
By Design
Votes
0
Found in
2019.4
2019.4.2f1
2020.1
2020.2
Issue ID
1261468
Regression
No
Package Manager doesn't resolve package dependencies when using Git URL to add a package which contains a Git URL dependency
How to reproduce:
1. Create and open a new project
2. Open the Package Manager window from Window > Package Manager
3. Click Add package from Git URL and use this URL: https://github.com/Augustinas-simkus/Package2.git
Expected result: "Package 2" downloads together with "Package 1" since "Package 1" is listed as a dependency
Actual result: error is thrown and the package isn't added
Reproducible with: 2019.4.4f1, 2020.1.0b16, 2020.2.0a18
Could not test with: 2018.4.24f1 (no support for Git URLs)
Notes:
-If "Package 1" is installed separately via the URL provided in the package.json of the "Package 2", "Package 2" downloads successfully
-The full error message which is thrown after the download fails:
Cannot perform upm operation: Unable to add package [https://github.com/Augustinas-simkus/Package2.git]:
Package com.augustinas_simkus.package2@https://github.com/Augustinas-simkus/Package2.git has invalid dependencies or related test packages:
com.augustinas_simkus.package1 (dependency): Version 'https://github.com/Augustinas-simkus/Package1.git' is invalid. Expected a 'SemVer' compatible value. [NotFound].See console for more details
UnityEditor.EditorApplication:Internal_CallUpdateFunctions()
-
JamesSozoLabs
Jul 12, 2023 17:43
Sorry for necro posting.
We're using specialized packages in our company and need to be able to set dependencies in package.json files that point to other git repos.
I'm getting the same error as above, any chance this is in the pipeline?
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Spot Light with 'Box' Shape stops working when it collides with Mesh
- Accepting Asset Store EULA endless loop in Package Manager window
- “InvalidOperationException: Sequence contains no matching element“ error when reenabling a custom Debug Draw Mode
- Prefab that contains a layout group is marked as changed by the Editor when opened
- Emission animation does not appear when the "Emission Map" parameter is set to black in a Lit material
Resolution Note:
Dependencies declared with Git URLs are only supported in project manifests (<project>/Packages/manifest.json), not package manifests (package.json).