mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-23 00:18:05 +08:00
4c82b77b45
* Add the ability to do full rebuilds with updated copies of vcpkg-tool. Resurrection of https://github.com/microsoft/vcpkg/pull/23753/ * Extract all scripts out of inline blocks. * Replicate all changes to the "unstable" testing. * Fix bootstrap :) * Fix version files validation path. * Malformed. * Paths and permissions. * Fixed file name typo * Update scripts/azure-pipelines/bootstrap-from-source.sh Co-authored-by: Robert Schumacher <roschuma@microsoft.com> Co-authored-by: Robert Schumacher <roschuma@microsoft.com>
30 lines
936 B
PowerShell
30 lines
936 B
PowerShell
./vcpkg.exe --feature-flags=versions x-ci-verify-versions --verbose |
|
|
ForEach-Object -Begin {
|
|
$long_error = ''
|
|
} -Process {
|
|
if ($long_error -ne '' -and $_ -match '^$|^ ') {
|
|
# Extend multi-line message
|
|
$long_error = -join($long_error, "%0D%0A", $_ -replace '^ ','' `
|
|
-replace '(git add) [^ ]*\\ports\\([^ ]*)', '$1 ports/$2' )
|
|
} else {
|
|
if ($long_error -ne '') {
|
|
# Flush multi-line message
|
|
$long_error
|
|
$long_error = ''
|
|
}
|
|
if ($_ -match '^Error: ') {
|
|
# Start multi-line message
|
|
$long_error = $_ -replace '^Error: ', '##vso[task.logissue type=error]' `
|
|
-replace '(^##vso[^\]]*)](.*) [^ ]*\\versions\\(.-)\\(.*.json)(.*)', '$1;sourcepath=versions/$3/$4;linenumber=2]$2 version/$3/$4$5'
|
|
} else {
|
|
# Normal line
|
|
$_
|
|
}
|
|
}
|
|
} -End {
|
|
if ($long_error -ne '') {
|
|
# Flush multi-line message
|
|
$long_error
|
|
}
|
|
}
|