mirror of
https://github.com/aphrody-labs/PowerShell.git
synced 2026-10-17 12:45:47 +00:00
Update 'Start-PSBuild -Clean' logic of 'git clean' to ignore locked files from VS2019 (#10071)
This commit is contained in:
1 parent
201d7aa275
commit
3141405159
1 file changed
+2
-2
+2
-2
@@ -265,12 +265,12 @@ function Start-PSBuild {
|
||||
}
|
||||
|
||||
if ($Clean) {
|
||||
Write-Log "Cleaning your working directory. You can also do it with 'git clean -fdX --exclude .vs/PowerShell/v15/Server/sqlite3'"
|
||||
Write-Log "Cleaning your working directory. You can also do it with 'git clean -fdX --exclude .vs/PowerShell/v16/Server/sqlite3'"
|
||||
Push-Location $PSScriptRoot
|
||||
try {
|
||||
# Excluded sqlite3 folder is due to this Roslyn issue: https://github.com/dotnet/roslyn/issues/23060
|
||||
# Excluded src/Modules/nuget.config as this is required for release build.
|
||||
git clean -fdX --exclude .vs/PowerShell/v15/Server/sqlite3 --exclude src/Modules/nuget.config
|
||||
git clean -fdX --exclude .vs/PowerShell/v16/Server/sqlite3 --exclude src/Modules/nuget.config
|
||||
} finally {
|
||||
Pop-Location
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user