-
-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
openupm cli add package will not add packages for non-up-to-date unity versions #19
Comments
Hi @maxhimmel, Thank you for the report, I confirm it's a bug. When providing a package without a version, it shall install the most up-to-date version of the package that is valid for the current version of the unity editor. |
I think this bug still remains with some packages. It is OK for com.unity.postprocessing, but this bug still happens with com.unity.render-pipelines.universal The latest version of com.unity.render-pipelines.universal is now 14.0.9, however,
Because of this, I cannot add dependencies which requires com.unity.render-pipelines.universal 14.0.1 such as Please take a look. I will use -f option until this bug fixes. Thank you for the great service, anyway. |
The naive fix for this is to walk back package versions from the latest until a version is found that works for the current editor-version. This could involve a lot of web-requests. I could implement it this way, but I wanted to first ask if there are alternative suggestions. |
For the original issue from @maxhimmel, it can be solved by going through a reverse sorted of |
That's true, I did not think of that. I will look into this. |
@all-contributors please add @maxhimmel for bug. |
I've put up a pull request to add @maxhimmel! 🎉 |
I have Unity 2019.4.17f1
I'm trying to add a list of unity packages from a shell script:
I run the command
openupm add com.unity.postprocessing
Response:
WARN editor.version requires 2019.4.19f1 but found 2019.4.17f1
notice suggest upgrade the editor to 2019.4.19f1, or run with option -f to ignore the warning
I also run the command
openupm add com.unity.render-pipelines.universal
Response:
WARN editor.version requires 2020.2.3f1 but found 2019.4.17f1
notice suggest upgrade the editor to 2020.2.3f1, or run with option -f to ignore the warning
It seems like a bug to me that this cli tool wouldn't auto-select the most up-to-date version of the package that is valid for the current version of the unity editor. Much like how the UPM does so. At least those are my expectations.
Am I using this tool incorrectly? Am I missing an option in the CLI?
The
-f
option isn't working for me either because it installs the most up-to-date version of the package into the editor which isn't supported by my current version of the editor.Also, this tool is amazing and it was great fun integrating it into my tooling for expedited project creation.
I hope this is an easy fix or I'm just doing something dumb!
The text was updated successfully, but these errors were encountered: