This commit is contained in:
Brian Zalewski 2023-06-14 06:20:56 +00:00
parent 8d13abdcae
commit bffbbe8e4d

View file

@ -962,8 +962,11 @@ async function ensurePackageManager(packageManager) {
const cargo = which.sync('cargo', { nothrow: true }) const cargo = which.sync('cargo', { nothrow: true })
if (!cargo) { if (!cargo) {
if (osType === 'darwin') { if (osType === 'darwin') {
const rustup = which.sync('rustup-init', { nothrow: true })
if (!rustup) {
await $`brew install rustup` await $`brew install rustup`
await $`rustup-init` }
await $`rustup-init -y`
} else if (osType === 'windows') { } else if (osType === 'windows') {
} else { } else {
await ensurePackage('cargo') await ensurePackage('cargo')