mirror of
https://github.com/PowerShell/PowerShell
synced 2026-06-08 12:12:50 +00:00
Add a precheck for git to build.psm1 (#13227)
This commit is contained in:
+7
-1
@@ -345,8 +345,14 @@ function Start-PSBuild {
|
||||
# Add .NET CLI tools to PATH
|
||||
Find-Dotnet
|
||||
|
||||
# Verify we have git in place to do the build, and abort if the precheck failed
|
||||
$precheck = precheck 'git' "Build dependency 'git' not found in PATH. See <URL: https://docs.github.com/en/github/getting-started-with-github/set-up-git#setting-up-git >"
|
||||
if (-not $precheck) {
|
||||
return
|
||||
}
|
||||
|
||||
# Verify we have .NET SDK in place to do the build, and abort if the precheck failed
|
||||
$precheck = precheck 'dotnet' "Build dependency 'dotnet' not found in PATH. Run Start-PSBootstrap. Also see: https://dotnet.github.io/getting-started/"
|
||||
$precheck = precheck 'dotnet' "Build dependency 'dotnet' not found in PATH. Run Start-PSBootstrap. Also see <URL: https://dotnet.github.io/getting-started/ >"
|
||||
if (-not $precheck) {
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user