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
- Particle System Curve's Presets window has no visual indication on what preset is selected
- Blur shader doesn't work when the "Scene Color" Node is attached to the UI "Output" Node
- Particle System Curve presets can't be scrolled and some of them can't be selected if window is too narrow to fit them all
- Mistakes in multiple Particle System Components pop-up
- Hovering on the Particle System Controls shows an offset tooltip with the overlay window name
Resolution Note:
Dependencies declared with Git URLs are only supported in project manifests (<project>/Packages/manifest.json), not package manifests (package.json).