You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Define the regex pattern that accounts for multiline input
88
-
$expectedPattern="(?s)"+
89
-
".*\[DEBUG\] External asset downloads are blocked \(x-block-origin is enabled\)\.\.\.?"+
90
-
".*\[DEBUG\] Asset caching is enabled\..*"
91
-
92
-
if (-not ($actual-match$expectedPattern)) {
87
+
if (-not ($actual.Contains("[DEBUG] External asset downloads are blocked (x-block-origin is enabled)") -and$actual.Contains("[DEBUG] Asset caching is enabled."))) {
if (-not ($actual.Contains("[DEBUG] External asset downloads are allowed (x-block-origin is disabled)") -and$actual.Contains("[DEBUG] Asset cache is not configured"))) {
Copy file name to clipboardExpand all lines: locales/messages.json
+4Lines changed: 4 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -595,12 +595,16 @@
595
595
"_DownloadFailedCurl.comment": "An example of {url} is https://github.com/microsoft/vcpkg. An example of {exit_code} is 127.",
596
596
"DownloadFailedHashMismatch": "File does not have the expected hash:\nurl: {url}\nFile: {path}\nExpected hash: {expected}\nActual hash: {actual}",
597
597
"_DownloadFailedHashMismatch.comment": "{expected} and {actual} are SHA512 hashes in hex format. An example of {url} is https://github.com/microsoft/vcpkg. An example of {path} is /foo/bar.",
598
+
"DownloadFailedProxySettings": "Failed to download {path}.\nIf you are using a proxy, please ensure your proxy settings are correct.\nPossible causes are:\n1. You are actually using an HTTP proxy, but setting HTTPS_PROXY variable to `https//address:port`.\nThis is not correct, because `https://` prefix claims the proxy is an HTTPS proxy, while your proxy (v2ray, shadowsocksr, etc...) is an HTTP proxy.\nTry setting `http://address:port` to both HTTP_PROXY and HTTPS_PROXY instead.\n2. If you are using Windows, vcpkg will automatically use your Windows IE Proxy Settings set by your proxy software. See, {url}\nThe value set by your proxy might be wrong, or have same `https://` prefix issue.\n3. Your proxy's remote server is our of service.\nIf you've tried directly download the link, and believe this is not a temporay download server failure, please submit an issue at https://github.com/Microsoft/vcpkg/issues\nto report this upstream download server failure.",
599
+
"_DownloadFailedProxySettings.comment": "An example of {path} is /foo/bar. An example of {url} is https://github.com/microsoft/vcpkg.",
598
600
"DownloadFailedRetrying": "Download failed -- retrying after {value}ms",
599
601
"_DownloadFailedRetrying.comment": "{value} is a number of milliseconds",
600
602
"DownloadFailedStatusCode": "{url}: failed: status code {value}",
601
603
"_DownloadFailedStatusCode.comment": "{value} is an HTTP status code An example of {url} is https://github.com/microsoft/vcpkg.",
"_DownloadSuccesful.comment": "An example of {path} is /foo/bar.",
604
608
"DownloadWinHttpError": "{url}: {system_api} failed with exit code {exit_code}",
605
609
"_DownloadWinHttpError.comment": "An example of {system_api} is CreateProcessW. An example of {exit_code} is 127. An example of {url} is https://github.com/microsoft/vcpkg.",
606
610
"DownloadedSources": "Downloaded sources for {spec}",
0 commit comments