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 Sep 13, 2024
1 parent 6e61142 commit c603f40
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 c603f40

Please sign in to comment.