Skip to content

Commit

Permalink
(#101) Fix to not check rustc version when not needed
Browse files Browse the repository at this point in the history
  • Loading branch information
mario4tier committed Oct 16, 2024
1 parent 698259f commit 5d398cc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/common/__globals.sh
Original file line number Diff line number Diff line change
Expand Up @@ -370,6 +370,9 @@ exit_if_rust_build_deps_missing() {
is_installed cmake || setup_error "Need to install cmake. See https://docs.sui.io/build/install#prerequisites"
is_installed rustc || setup_error "Need to install rust. See https://docs.sui.io/build/install#prerequisites"
is_installed cargo || setup_error "Need to install cargo. See https://docs.sui.io/build/install#prerequisites"

# Verify Rust is recent enough.
version_greater_equal "$(rustc --version)" "$MIN_RUST_VERSION" || setup_error "Upgrade rust to a more recent version"
}
export -f exit_if_rust_build_deps_missing

Expand Down Expand Up @@ -800,9 +803,6 @@ build_sui_repo_branch() {
is_installed git || setup_error "Need to install git. See https://docs.sui.io/build/install#prerequisites"
is_installed lsof || setup_error "Need to install 'lsof'."

# Verify Rust is recent enough.
version_greater_equal "$(rustc --version)" "$MIN_RUST_VERSION" || setup_error "Upgrade rust to a more recent version"

local _IS_SET_SUI_REPO="false"
if is_sui_repo_dir_override; then
_IS_SET_SUI_REPO="true"
Expand Down

0 comments on commit 5d398cc

Please sign in to comment.