bootstrap: auto-enable editable install for dev checkouts (git repo) with no prompt
Some checks failed
smoke-mm / Install & smoke test mm --help (push) Has been cancelled
Some checks failed
smoke-mm / Install & smoke test mm --help (push) Has been cancelled
This commit is contained in:
@@ -153,9 +153,9 @@ if (-not $NoInstall) {
|
||||
try { $gitOut = & git -C $repoRoot rev-parse --is-inside-work-tree 2>$null; if ($gitOut -eq 'true') { $isGit = $true } } catch {}
|
||||
}
|
||||
} catch {}
|
||||
if ($isGit -and -not $Quiet) {
|
||||
$ans = Read-Host "It looks like this is a development checkout (git repo). Install project in editable mode for development? (Y/n)"
|
||||
if ($ans -eq '' -or $ans -eq 'y' -or $ans -eq 'Y') { $Editable = $true; Write-Log "Selected editable install for development." "INFO" }
|
||||
if ($isGit) {
|
||||
$Editable = $true
|
||||
Write-Log "Detected development checkout; installing in editable mode for development." "INFO"
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user