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
- Mono Windows Builds don't produce full log callstacks when generating logs
- AssetBundles fail to load when running in Built Players for Mobile Devices
- UI elements with text gets bigger and grey when Player window is moved to another screen with different resolution
- System name accepts multiline text but crops it on confirmation, duplicates input, and shrinks the field when empty
- UI element scale and position are wrong in project build when DRS is changed with HDR and Software Dynamic Resolution enabled
Resolution Note:
Dependencies declared with Git URLs are only supported in project manifests (<project>/Packages/manifest.json), not package manifests (package.json).