[macOS] Unlock Cargo crate dependencies due to a bug (#10390)
This commit is contained in:
@@ -7,7 +7,16 @@
|
|||||||
source ~/utils/utils.sh
|
source ~/utils/utils.sh
|
||||||
|
|
||||||
[[ -n $API_PAT ]] && authString=(-H "Authorization: token ${API_PAT}")
|
[[ -n $API_PAT ]] && authString=(-H "Authorization: token ${API_PAT}")
|
||||||
nvm_version=$(curl "${authString[@]}" -fsSL https://api.github.com/repos/nvm-sh/nvm/releases/latest | jq -r '.tag_name')
|
|
||||||
|
nvm_version=$(get_toolset_value '.node.nvm_installer')
|
||||||
|
if [[ -z $nvm_version || "$nvm_version" == "latest" ]]; then
|
||||||
|
nvm_version=$(curl "${authString[@]}" -fsSL https://api.github.com/repos/nvm-sh/nvm/releases/latest | jq -r '.tag_name')
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [[ $nvm_version != "v*" ]]; then
|
||||||
|
nvm_version="v${nvm_version}"
|
||||||
|
fi
|
||||||
|
|
||||||
nvm_installer_path=$(download_with_retry "https://raw.githubusercontent.com/nvm-sh/nvm/$nvm_version/install.sh")
|
nvm_installer_path=$(download_with_retry "https://raw.githubusercontent.com/nvm-sh/nvm/$nvm_version/install.sh")
|
||||||
|
|
||||||
if bash $nvm_installer_path; then
|
if bash $nvm_installer_path; then
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ echo "Install common tools..."
|
|||||||
rustup component add rustfmt clippy
|
rustup component add rustfmt clippy
|
||||||
|
|
||||||
if is_BigSur || is_Monterey; then
|
if is_BigSur || is_Monterey; then
|
||||||
cargo install --locked bindgen-cli cbindgen cargo-audit cargo-outdated
|
cargo install bindgen-cli cbindgen cargo-audit cargo-outdated
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "Cleanup Cargo registry cached data..."
|
echo "Cleanup Cargo registry cached data..."
|
||||||
|
|||||||
@@ -339,6 +339,7 @@
|
|||||||
},
|
},
|
||||||
"node": {
|
"node": {
|
||||||
"default": "18",
|
"default": "18",
|
||||||
|
"nvm_installer": "0.39.7",
|
||||||
"nvm_versions": [
|
"nvm_versions": [
|
||||||
"16",
|
"16",
|
||||||
"18",
|
"18",
|
||||||
|
|||||||
Reference in New Issue
Block a user