MCPcopy Create free account
hub / github.com/ScriptedAlchemy/tracedecay / fetch_latest_version

Function fetch_latest_version

src/cloud.rs:190–196  ·  view source on GitHub ↗

Fetches the latest release version from GitHub. For beta builds, fetches the latest prerelease; for stable builds, fetches the latest stable release. This ensures each channel only sees updates from its own channel. Releases whose CI hasn't yet uploaded the current-platform binary are skipped — see `release_has_current_platform_asset`.

()

Source from the content-addressed store, hash-verified

188/// uploaded the current-platform binary are skipped — see
189/// `release_has_current_platform_asset`.
190pub fn fetch_latest_version() -> Option<String> {
191 if is_beta() {
192 fetch_latest_beta_version()
193 } else {
194 fetch_latest_stable_version()
195 }
196}
197
198/// Fetches the latest stable release version from GitHub.
199pub fn fetch_latest_stable_version() -> Option<String> {

Callers 3

check_for_updateFunction · 0.70
check_networkFunction · 0.70
latest_upgrade_versionFunction · 0.70

Calls 3

is_betaFunction · 0.85

Tested by

no test coverage detected