Skip to content

Commit

Permalink
Special-case default run
Browse files Browse the repository at this point in the history
  • Loading branch information
joncinque committed Oct 3, 2024
1 parent a8dcbbd commit 6d18750
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions sdk/cargo-build-sbf/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,11 @@ fn semver_version(version: &str) -> String {
}

fn validate_platform_tools_version(requested_version: &str, builtin_version: &str) -> String {
// Early return here in case it's the first time we're running `cargo build-sbf`
// and we need to create the cache folders
if requested_version == builtin_version {
return builtin_version.to_string();
}
let normalized_requested = semver_version(requested_version);
let requested_semver = semver::Version::parse(&normalized_requested).unwrap();
let installed_versions = find_installed_platform_tools();
Expand Down

0 comments on commit 6d18750

Please sign in to comment.