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()
Comments (1)
-
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
- Errors thrown in the Console when configuring In-App Purchases package
- Longer Scaler Profile names go out of the"Scaler Profilers" section
- AI Navigation window UI elements overlap when the AI Navigation window is docked and resized
- Editor freezes after some time when using NavMeshQuery::Raycast
- Cube is rendered green when its color is set to black and using the Lift Gamma Gain Volume interpolation
Resolution Note:
Dependencies declared with Git URLs are only supported in project manifests (<project>/Packages/manifest.json), not package manifests (package.json).