Граф коммитов

3690 Коммитов

Автор SHA1 Сообщение Дата
Javier Matos Denizac 99de266b62
Editing asset cache output when using x-script (#1541)
* improve messaging for x-script

* add newlines @ EOF

* format

* respond to Billy feedback

* test order of messaging

---------

Co-authored-by: Javier Matos <javiermatos@Javiers-Laptop.local>
2024-11-19 10:34:51 -05:00
Billy O'Neal d176cbeeb0
Disable -Wno-dangling-reference on GCC 13. (#1543)
Our Optional<T&> and Expected<T&> trip over the false positive described in https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107532 , where there are temporary Optional or Expecteds that return references to things outside of their own lifetime that trip the warning.
2024-11-15 15:08:45 -08:00
Embedded Bot 0df8e52f52 [localization][automated][ci skip] update locale files 2024-11-15 05:03:27 +00:00
CSIGS@microsoft.com e81fe3d748
Juno: check in to juno/hb_cb3056d7-d122-4ef4-8657-e36080a7f8c6_20241114135149746. (#1542) 2024-11-14 13:44:46 -08:00
Embedded Bot b3470d0137 [localization][automated][ci skip] update locale files 2024-11-14 05:03:44 +00:00
CSIGS@microsoft.com a09a2dfc89
Juno: check in to juno/hb_cb3056d7-d122-4ef4-8657-e36080a7f8c6_20241113135200936. (#1540) 2024-11-13 11:08:42 -08:00
Embedded Bot 1727f99537 [localization][automated][ci skip] update locale files 2024-11-13 05:03:26 +00:00
CSIGS@microsoft.com 3968dfb8a3
Juno: check in to juno/hb_cb3056d7-d122-4ef4-8657-e36080a7f8c6_20241112135237686. (#1539) 2024-11-12 15:13:17 -08:00
Embedded Bot cd2d43b88e [localization][automated][ci skip] update locale files 2024-11-12 05:03:57 +00:00
Billy O'Neal eb492805e9
Update vcpkg-scripts SHA 2024-11-11. (#1538) 2024-11-11 22:49:18 +00:00
Javier Matos Denizac 1393ad8082
Fix all download failures claiming that the download was disabled by x-block-origin. (#1513) 2024-11-11 13:36:51 -08:00
Embedded Bot af3caca31b [localization][automated][ci skip] update locale files 2024-11-09 05:03:04 +00:00
Billy O'Neal 471f4efa30
Add switch to force classic mode. (#1535)
A customer wanted to run vcpkg in a place where they could not control that a `vcpkg.json` was in a directory above, and requested a way to force classic mode. One used to be able to do this with the `--no-manifest` feature flag, but that was removed some years ago.

This adds a new switch, `--classic`, which effectively skips looking for a manifest.
2024-11-08 19:39:16 +00:00
CSIGS@microsoft.com a823584ec7
Juno: check in to juno/hb_cb3056d7-d122-4ef4-8657-e36080a7f8c6_20241108135410664. (#1537) 2024-11-08 11:11:43 -08:00
Embedded Bot be689be430 [localization][automated][ci skip] update locale files 2024-11-05 05:03:45 +00:00
Billy O'Neal 84e2dcfb2e
Make status line parsing testable. (#1528)
Removes Want::UNKNOWN as this was only ever referenced in to_string, and never otherwise used in the product.
2024-11-04 22:34:17 +00:00
Javier Matos Denizac 360e5c64da
Change to macOS CI runs from macOS-12 to macOS-13 (#1536) 2024-11-04 13:42:36 -08:00
Billy O'Neal ce99f4c002
Move merging original_cwd into overlay directories into VcpkgPaths. (#1522)
This work is part of resolving https://github.com/microsoft/vcpkg/issues/30942 / https://devdiv.visualstudio.com/DevDiv/_workitems/edit/1979597

When overlay directories from the config were added in https://github.com/microsoft/vcpkg-tool/pull/743 this added a condition where VcpkgPaths took responsibility to tack on the relative path, transforming those paths that come from the config into absolute paths. I did not realize at the time that this block was repeating machinery already present in IOverlayProvider family. The difference is that, there, it always assumed the prefix would be original_cwd.

As part of adding overlay-port-dirs, I needed to add the same kind of prefix handling as overlay-ports get, thus pointing this out to me. It doesn't make sense to keep two independent ways to do this, leaving two options:

* Move the prefix stapling into VcpkgPaths (as done in this PR)
* Move the prefix stapling related to configs down into OverlayPortProviderImpl

I chose to move into VcpkgPaths for several reasons:

* Plumbing the information about how to handle config paths correctly into OverlayPortProviderImpl would have added many many function parameters to large parts of the product that are only passing paths information around.
* The decision to chdir in VcpkgPaths is a consideration *it* makes, and OverlayPortProviderImpl would be just as happy if the relative paths were left alone. (And in fact I think the right behavior in the future would be to remove this harmful chdir but that is not proposed right now)
* Despite making VcpkgPaths do "more work" here, I actually argue that it makes the "VcpkgPaths big ball of mud" problem better, by removing parts of the code that need to consider original_cwd.
2024-11-01 00:37:22 -07:00
Billy O'Neal cfbdd3adbd
Remove PrintUsage from BuildPackageOptions. (#1527)
* Remove PrintUsage from BuildPackageOptions.

Extracted from https://github.com/microsoft/vcpkg-tool/pull/1514/

build_package never prints usage so the setting should not be there.

* Fix flipped print usage order in commands.install.cpp
2024-11-01 00:37:00 -07:00
Billy O'Neal ef392c34d2
Extract more contractual constants. (#1529)
Extracted from https://github.com/microsoft/vcpkg-tool/pull/1514/
2024-11-01 00:36:31 -07:00
Billy O'Neal 9de7943ac5
Make SPDX resource hueristics an object rather than a value. (#1530)
Extracted from https://github.com/microsoft/vcpkg-tool/pull/1514

We were paying to package the object up into a value, then unpackage it.
2024-11-01 00:36:14 -07:00
Billy O'Neal 5a30615089
Fix try_load_port to match its documented interface. (#1533)
The last two paths in try_load_port translated a nonexistent port directory or missing CONTROL file into errors, which is the try_load_port_required interface. No path returned the "nullptr scfl" result.

The only caller of try_load_port in registries.cpp therefore clearly wanted the "_required" behavior.
2024-10-29 13:38:38 -07:00
Billy O'Neal 98286940d1
Apply the normal "to_string" pattern in more places. (#1521)
Co-authored-by: Thomas1664 <46387399+Thomas1664@users.noreply.github.com>
2024-10-24 09:45:18 -07:00
Embedded Bot 6e4fa3cd27 [localization][automated][ci skip] update locale files 2024-10-24 05:03:12 +00:00
Billy O'Neal 829b20e144
Add "maybe" operations to JSON. (#1520)
Extracted from https://github.com/microsoft/vcpkg-tool/pull/1514
2024-10-23 14:57:27 -07:00
Billy O'Neal 76ca355da5
Allow constexpr optionals. (#1509)
Extracted from https://github.com/microsoft/vcpkg-tool/pull/1490/ as it's unclear when that change will land.
2024-10-23 11:35:54 -07:00
CSIGS@microsoft.com 18859ec098
Juno: check in to juno/hb_cb3056d7-d122-4ef4-8657-e36080a7f8c6_20241023125053437. (#1524) 2024-10-23 11:33:17 -07:00
Embedded Bot 05ac9a10bd [localization][automated][ci skip] update locale files 2024-10-23 05:03:39 +00:00
Billy O'Neal ffc69f0b42
Commonize \r\n / \n handling in test cases. (#1519)
* Commonize `r`n / `n handling in test cases.

Extracted from https://github.com/microsoft/vcpkg-tool/pull/1514

Rather than each test case inventing their own way of dealing with the Windows/Linux `r`n vs `n difference, this change just always makes the output collection functions to do that transformation.

* Fix damaged -contains pointed out by @ras0219-msft
2024-10-22 14:44:45 -07:00
CSIGS@microsoft.com 87d3803913
Juno: check in to juno/hb_cb3056d7-d122-4ef4-8657-e36080a7f8c6_20241022125345221. (#1523) 2024-10-22 13:30:35 -07:00
Siyuan Ren 39396a70ba
Fix missing includes (#1517)
WIFEXITED requires <sys/wait.h> header. On some platforms, the transitive includes have this symbol, but not all.
2024-10-21 16:01:51 -07:00
Embedded Bot ad7b71c9fc [localization][automated][ci skip] update locale files 2024-10-18 05:03:13 +00:00
Billy O'Neal e392d7347f
Update vcpkg-scripts SHA. (#1516) 2024-10-18 02:23:15 +00:00
Billy O'Neal dc69ae8bdd
Add a better error message for unlimited argument commands. (#1515)
Before / after:

```console
PS D:\vcpkg\test> ..\vcpkg.exe new --application
PS D:\vcpkg\test> ..\vcpkg.exe add rapidjson
error: the command 'add' requires between 2 and 18446744073709551615 arguments, inclusive, but 1 were provided
[...]

PS D:\vcpkg\test> D:\vcpkg-tool\out\build\Win-x64-Debug-WithArtifacts\vcpkg.exe add rapidjson
error: the command 'add' requires at least 2 arguments, but 1 were provided
```
2024-10-17 18:57:34 -07:00
data-queue 67931f1ae7
Support Azure universal packages as a binary caching provider (#1491)
* add universal support

* fix

* fix

* review

* review

* fix
2024-10-17 18:14:39 -07:00
Billy O'Neal 7869ef3adb
Make e2e tests slightly more explicit and consistent. (#1510) 2024-10-16 10:50:03 -07:00
Embedded Bot 3a7bec0bef [localization][automated][ci skip] update locale files 2024-10-10 05:03:50 +00:00
CSIGS@microsoft.com 09274371c7
Juno: check in to juno/hb_cb3056d7-d122-4ef4-8657-e36080a7f8c6_20241008234846681. (#1507) 2024-10-09 13:27:14 -07:00
Billy O'Neal 00c55083f4
Enable extracting 7zNNNN-x64.exe with win32_extract_self_extracting_7z (#1506) 2024-10-09 13:26:06 -07:00
Embedded Bot c681dfebd8 [localization][automated][ci skip] update locale files 2024-10-04 05:03:09 +00:00
CSIGS@microsoft.com 14b84e9045
Juno: check in to juno/hb_cb3056d7-d122-4ef4-8657-e36080a7f8c6_20241003125335816. (#1505) 2024-10-03 13:52:14 -07:00
CSIGS@microsoft.com e09c0296ea
Juno: check in to juno/hb_cb3056d7-d122-4ef4-8657-e36080a7f8c6_20241002125125959. (#1504) 2024-10-03 13:51:59 -07:00
Embedded Bot 492612868d [localization][automated][ci skip] update locale files 2024-10-01 05:03:37 +00:00
Billy O'Neal ab8988503c
x-add-version: Check that port-version is the next integer (#1495) 2024-09-30 12:55:55 -07:00
Billy O'Neal 48946f6a7f
Improve diagnostics when an invalid triplet name is supplied. (#1497)
* Improve diagnostics when an invalid triplet name is supplied.

This fixes a regression introduced in https://github.com/microsoft/vcpkg-tool/pull/1474 where an error message is added but the corresponding text being parsed is not. This was reported as https://github.com/microsoft/vcpkg/issues/41143

* Fix the unit tests for "hypens" 😅

* Fix comment for changed variable name
2024-09-30 12:54:53 -07:00
Billy O'Neal b267c7052f
Fix unset on POSIX. (#1499)
Should fix https://github.com/microsoft/vcpkg/issues/36025
2024-09-30 12:54:26 -07:00
Billy O'Neal 8c47fbab17
Update vcpkg-scripts SHA 2024-09-30. (#1503) 2024-09-30 19:26:51 +00:00
autoantwort 3122da72b1
Fix regression on windows: Env var names are case insensitive (#1501) 2024-09-30 12:05:13 -07:00
Embedded Bot 5f22943356 [localization][automated][ci skip] update locale files 2024-09-28 05:03:28 +00:00
CSIGS@microsoft.com 53380ae6b4
Juno: check in to juno/hb_cb3056d7-d122-4ef4-8657-e36080a7f8c6_20240927125218337. (#1502) 2024-09-27 18:49:24 -07:00