Yakiyo / dsm

Version Manager for the Dart SDK
https://dsm-vm.vercel.app/
MIT License
10 stars 1 forks source link

partial version arguments #16

Open Yakiyo opened 1 year ago

Yakiyo commented 1 year ago

Currently dsm requires the version input to be an exact version string. as in "3.0.5" will work but "3.0" wont resolve to the latest patch of the version. This is partly due to a lack of available index for the dart sdk version and also because of the crate dart_semver, thats current being used to parse the semver, not supporting the syntax. fetching directly from gh api is not possible as it needs a lot of pagination (and time) to fetch all tags of the sdk and it hits the daily free ratelimit too. For the index, i've been trying to make one at Yakiyo/dart-index and for the semver parsing, Yakiyo/dart-semver.rs needs fixing. So the current issues would

Yakiyo commented 1 year ago

dart-semver v2 - https://github.com/Yakiyo/dart-semver.rs/pull/1

Yakiyo commented 1 year ago

It seems there really is a list of available dart sdk versions. The following url needs to be used

https://www.googleapis.com/storage/v1/b/dart-archive/o?delimiter=%2F&prefix=channels%2F{{ channel }}%2Frelease%2F&alt=json
Yakiyo commented 1 year ago

A working index for available sdk versions

https://github.com/Yakiyo/dinx