Open Duobix opened 5 years ago
Ooops! Yes I found the issue. We fetch those from Unity's own json, but we map them to stable. It will be fixed in coming days. We'll probably add support for the older betas as well. Thanks for reporting!
Hey @Duobix !
I just took a look at your issue and we will not be addressing it in the upcoming release, ie soon. It would require a fairly large refactor for an issue that we feel is not critical.
For future reference, and if anyone wants to address this, the issue comes from the fact that the .json file that we get from the Hub offers several "channels", ie
{
"official": [],
"beta": []
}
But u3d does not parse those channels: https://github.com/DragonBox/u3d/blob/aa6b6bed8f90daa33825203fb2677269d7b774d8/lib/u3d/unity_versions.rb#L168-L174
However, as said earlier, the underlying model is simply a dictionary of 'version' => 'url' which does not support the idea of channel introduced in the hub, and would need to be changed.
@niezbop Would this cause u3d available
on Linux to only go up to 2019.1.0f2?
@M1kep It doesn't!
Note that u3d available
works locally when fetching the versions myself.
$ u3d available -o linux --force --no-central
...
Version 2018.3.0f2: https://beta.unity3d.com/download/6e9a27477296/
Version 2018.4.13f1: https://download.unity3d.com/download_unity/497f083a43af/
Version 2019.1.0f2: http://beta.unity3d.com/download/292b93d75a2c/
Version 2019.2.14f1: https://download.unity3d.com/download_unity/49dd4e9fa428/
Version 2019.3.0f1: https://beta.unity3d.com/download/ffacea4b84e7/
Version 2020.1.0a14: https://beta.unity3d.com/download/2a3307d3869b/
So the issue is probably that the central cache hasn't updated yet! However if you run the command I just ran, it will update your local versions cache so you'll be able to download and install whichever version you like!
Issue Checklist
u3d --help
Issue Description
latest_stable returns a probably wrong version, that is - it's still a beta. I ran "u3d install latest_stable -p Unity,Android,iOS", and got: Version 'latest_stable' is 2019.1.0f1. The latest stable version from what I know is now 2018.3.12f1, even 'u3d available' returns a link to beta: "Version 2019.1.0f1: https://beta.unity3d.com/download/5c52223b18d4/"