aboutsummaryrefslogtreecommitdiff
path: root/toolsrc/src
AgeCommit message (Collapse)Author
2021-01-14[vcpkg registries] Add git registries (#15054)nicole mazzuca
* [vcpkg registries] Add git registries support * Add git registries support to the registries module of vcpkg. * add e2e tests for git registries * fix vcpkg.cmake for registries * fix CRs, remove a thing * better error messages * Billy CRs * fix Robert's CR comment * I learned about `-c` today * format * fix baseline.json * failing to find baseline is technically not a bug
2021-01-14Improve `x-ci-verify-versions` error messages (#15651)Victor Romero
* [vcpkg] Change version field in `baseline.json` * Change name from `version-tag` to `baseline` * [vcpkg] x-history serializes version scheme * Update e2e tests * Update baseline e2e test * [x-ci-verify-versions] Improve error messages * Enable CI check for port_versions * Fix missing and extra line breaks. * Remove CI check
2021-01-14[vcpkg] Rewriting CmdLineBuilder (2/n) (#15627)nicole mazzuca
* [vcpkg] Rewriting CmdLineBuilder (2/n) I would like, and I think the team would like generally, to switch to using stuff like `posix_spawn`, as opposed to the existing use of `system` and `popen`. This requires a pretty large change to how we use CmdLineBuilder. The first change we have to make is that the execute functions _cannot_ take a StringView anymore. This PR makes that change.
2021-01-14[vcpkg] Change version field in `baseline.json` (#15633)Victor Romero
* [vcpkg] Change version field in `baseline.json` * Change name from `version-tag` to `baseline` * [vcpkg] x-history serializes version scheme * Update e2e tests * Update baseline e2e test
2021-01-14[vcpkg] Fix incorrect handling of messages for permenantly disabled metrics. ↵Billy O'Neal
(#15636) Fixes #15630
2021-01-13[vcpkg] Use a tag file rather than conditional compilation to permanently ↵Billy O'Neal
disable metrics. (#15470)
2021-01-13[vcpkg] Add sources for TLS 1.2 downloader tool. (#15516)Billy O'Neal
2021-01-13[vcpkg] Add parse checking for version fields and enable non-string versions ↵ras0219
outside 'versions' flag (#15580)
2021-01-12[vcpkg] Add a different way to use CommandBuilder, support ↵nicole mazzuca
InWorkingDirectory (#15583) * [vcpkg] Add stuff to the system.process API * CmdLineBuilder - add rvalue overloads * Add InWorkingDirectory support * remove `&&` outside of system.process.cpp * minor CR * move the non-InWorkingDirectory functions into the header as inline * Update toolsrc/include/vcpkg/base/system.process.h Co-authored-by: Billy O'Neal <bion@microsoft.com> * fix CmdLineBuilder name * moar bugfixin * fix native() location Co-authored-by: Billy O'Neal <bion@microsoft.com>
2021-01-10[vcpkg] Fix unrecognized identifier errors in prbuild and cibuild. (#15354)Billy O'Neal
2021-01-08[vcpkg] Fix build for mingw (#15504)nicole mazzuca
* fix build * stop the templateness none of the major three implementations have string::const_iterator = char const*
2021-01-07[vcpkg] Add commands to maintain and verify versions db integrity (#14999)Victor Romero
* [vcpkg] Add x-ci-verify-versions command * Code cleanup * Remove port version splitting from x-history * Fix wrong message on success * Parallelize versions file generator * Use cpu_count()/2 to avoid crashes * Check db SHA against local SHA * Check baseline version with x-ci-verify-versions and make baseline generator much faster * Implement x-add-version to update version db files * Better checks for x-add-info and make x-ci-verify-versions silent on success * Use find() instead of [] on maps * Create version file if does not exist * Allow redirection of ports/ and port_versions/ * add test ports * WIP end-to-end tests * Change pats in e2e tests * Fix e2e args * e2e once more * Pass ersions feature flag to e2e * Exit with code 1 if there are errors * Files to test for failure cases * Update test files * Add test for x-add-version * fix redirected ports in last test * Add CI check (use dummy data) * Add feature-flags=versions * Ignore subdirectories inside ports * Add --verify-git-trees switch * [vcpkg] Fix build breaks * [x-ci-verify-versions] PR comments * [x-add-version] PR comments * Fix merge conflicts * Modify tests and pipeline * Baselines should only have version-string * Refactor x-add-version * [vcpkg] Fix help message * [vcpkg] Fix minor warnings * `x-add-version --all` doesn't stop on first failure and reduced default verbosity * [vcpkg] Fix default-baseline * Load file instead of using paths provider * Format * Remove ci test * Add fish port for testing * Update version files * Update fish port to cause SHA discrepancy * Test for discrepancy between local SHA and declared SHA * Missing = operator * Check for error message since x-add-version exits with code 0 * Make x-add-version fail with non-zero exit code if not run with --all Co-authored-by: Robert Schumacher <roschuma@microsoft.com> Co-authored-by: Robert Schumacher <ras0219@outlook.com>
2021-01-07[vcpkg] Add support for --overlay-ports to versioning (#15013)ras0219
Co-authored-by: Robert Schumacher <roschuma@microsoft.com>
2021-01-07[vcpkg] Restore embedded git hash behind an option. (#15472)Billy O'Neal
2021-01-05[vcpkg] Improve versioning files generators (#15172)Victor Romero
* Remove port version splitting from x-history * Parallelize versions file generator * Use cpu_count()/2 to avoid crashes * Use generatePortVersionsDb.py output to generate baseline * Update scripts/generateBaseline.py Co-authored-by: Adam Johnson <AdamJohnso@gmail.com> * rename generateBaseline function * Update toolsrc/src/vcpkg/commands.porthistory.cpp Co-authored-by: ras0219 <533828+ras0219@users.noreply.github.com> * Remove unused code Co-authored-by: Adam Johnson <AdamJohnso@gmail.com> Co-authored-by: ras0219 <533828+ras0219@users.noreply.github.com>
2020-12-30[vcpkg] Teach `vcpkg install` `--no-build-missing` (#15139)Robert Schumacher
* [vcpkg] Teach `vcpkg install` `--no-build-missing` This switch causes failure to restore from cache to abort the build instead of performing a just-in-time build. This is useful in complex CI systems where the build was expected to have been performed previously, such as via another pipeline. * [vcpkg] Rename flag to require binary caching
2020-12-28[vcpkg] Fix pwsh version detection for old versions to download a fresh ↵Billy O'Neal
copy. (#15355)
2020-12-22[opentracing] Update VMs 2020-12 (#15151)Billy O'Neal
* Add meson from https://github.com/microsoft/vcpkg/pull/12860/ * Add autoconf-archive from https://github.com/microsoft/vcpkg/pull/13081/ * Add kf5windowsystem libs from https://github.com/microsoft/vcpkg/pull/13467/ * Open the FTP and SFTP ports from https://github.com/microsoft/vcpkg/pull/14412/ * Add libxcb-util0-dev from https://github.com/microsoft/vcpkg/pull/14678/ * Add libasound2-dev from https://github.com/microsoft/vcpkg/pull/14774 * Remove no longer necessary apt-mark calls. * Update nasm on Linux. * Fix longstanding bug where Storage was publicly accessible and change to generate SAS token rather than File Share * Delete no longer necessary azure storage firewall rules. * Install the newer Windows SDK with the VS installer instead of manually. * Install the VS2015 and VS2017 compilers. * Update Powershell-Core to 7.1.0. * Update source of WDK. * Update pools. * [opentracing] Repair arm64-windows failures caused by mojibake in `expected.hpp` and errors in opentracing-cpp's lint for arm64 where it thinks exceptions are disabled when they are enabled. Fixes: C:\Dev\vcpkg\buildtrees\opentracing\src\b67575dab0-0250653c81.clean\3rd_party\include\opentracing/expected/expected.hpp(1): warning C4828: The file contains a character starting at offset 0x4a77 that is illegal in the current source character set (codepage 65001). Fixes: D:\buildtrees\opentracing\src\b67575dab0-0250653c81.clean\include\opentracing/tracer.h:223:5: error: cannot use 'try' with exceptions disabled [clang-diagnostic-error] try { ^ * [mmloader] Patch out overrides of CMAKE_C_FLAGS and CMAKE_CXX_FLAGS that inserted /WX. Note that this port sets /GS-, possibly because it may be for authoring shellcode. * Bump storage API version to 2020-04-08.
2020-12-21[vcpkg registries] support versions (#15114)nicole mazzuca
* [vcpkg registries] support versions This PR merges the Registries changes and the versioning changes, so that one can use both at the same time. There is one major difference between this PR and the RFC (#13590), which is that instead of version files looking like: ```json [ ... ] ``` version files look like: ``` { "versions": [ ... ] } ``` this is to support interop between this PR and existing demos and the like; fixing this, along with perhaps renaming `port_versions` to `port-versions` should be done after this is merged, should be a trivial change.
2020-12-21Print failing upload attempts in !debug. (#15206)Billy O'Neal
Other changes: * Changed Strings::replace_all to use more StringView * Introduced Strings::inplace_replace_all for the common x = replace_all(move(x) pattern and tests -> Also fixed bug if the search string was empty consuming infinite memory! * Added many missing {}s in binarycaching.cpp
2020-12-18Fixed internal compiler error when using newer GCC@master. (#15188)nanoric
2020-12-17[vcpkg] `VCPKG_ENV_PASSTHROUGH_UNTRACKED` (#15115)ras0219
* [vcpkg] Add VCPKG_ENV_PASSTHROUGH_UNTRACKED * [vcpkg] CR comments Co-authored-by: Robert Schumacher <roschuma@microsoft.com>
2020-12-17[vcpkg] Fix warning (as error) when building vcpgk/toolsrc with clang++ 10 ↵Kevin Lalumiere
or g++ 9.3 (see #15148) (#15149)
2020-12-15[icu] mingw support + [mp3lame] Fix VCPKG_TARGET_STATIC_LIBRARY_SUFFIX (#14969)Long Nguyen
2020-12-15[vcpkg] fix v140. again (#15116)nicole mazzuca
2020-12-15[vcpkg] Remove extra indirection in ↵ras0219
IVersionedPortfileProvider/IBaselineProvider (#15010) * [vcpkg] Remove extra indirection in IVersionedPortfileProvider/IBaselineProvider * [vcpkg] Address CR comment Co-authored-by: Robert Schumacher <roschuma@microsoft.com>
2020-12-15[vcpkg] Fix CMAKE_CURRENT_LIST_DIR in load_dep_info_vars() (#15110)ras0219
Co-authored-by: Robert Schumacher <roschuma@microsoft.com>
2020-12-15[vcpkg] Refactor end-to-end tests (#15081)ras0219
* [vcpkg] Refactor end-to-end tests * [vcpkg] Cherry-pick x-builtin-ports-root from #14999 * [vcpkg] Move create test from unit tests to e2e Co-authored-by: Robert Schumacher <roschuma@microsoft.com>
2020-12-14Properly index package actions in log (#15076)gritukan
2020-12-14[vcpkg] Disable survey message (#14954)ras0219
2020-12-14Avoid C4819 warning during bootstrap-vcpkg.bat (#15095)Tetsuya Hayashi
2020-12-11[vcpkg] Don't require native tools on arm64 macOS (#15045)Owen Rudge
2020-12-10[vcpkg] Improve error messages for incomplete Mono (#14948)ras0219
* [vcpkg] Improve error messages for incomplete Mono * [vcpkg] Add mono upgrade notice for Ubuntu 18.04 users * [vcpkg] Fix always failing to check CMake version due to preferring 'error' constructor in ExpectedS * [vcpkg] Eagerly display the 'Ubuntu needs new mono' message to avoid users needing to install it twice Co-authored-by: Robert Schumacher <roschuma@microsoft.com>
2020-12-08[vcpkg] Fix uploading to Azure DevOps Artifacts (#14952)ras0219
2020-12-07[vcpkg] Add SemVer and Date versioning schemes (#14889)Victor Romero
* [vcpkg] Add semver versioning scheme * Remove unnecessary code * Fix SemVer comparison and add sorting test * Add date scheme * PR comments * Use a different column for date and semver schemes. * Use locale agnostic conversion to long * Add tests for version scheme change * Validate version strings before parsing * Format * Improve error messages * PR comments * PR comments pt. 2
2020-12-06[vcpkg] Add --nuget-description option for `vcpkg export` (#14953)ras0219
2020-12-04Change Nuget binary cache pre-release info to always start with letters (#14857)Francois Rivard
2020-12-04Fix failures when parsing the default options for binary caching not being ↵Billy O'Neal
emitted. (#14945) * Fix failures when parsing the default options for binary caching not beging emitted. Resolves #14922.
2020-12-04[vcpkg] Error on '#' in version strings to avoid confusion (#14927)ras0219
* [vcpkg] Refactor deserializers to reduce duplicate functionality * [vcpkg] Error on '#' in version strings to avoid confusion with port-version * [vcpkg] Improve error message * [vcpkg] Reorder field output * [vcpkg] Fix tests Co-authored-by: Robert Schumacher <roschuma@microsoft.com>
2020-12-02[vcpkg] fix compile on vs2015 (#14915)nicole mazzuca
* [vcpkg] fix compile on vs2015 * format
2020-12-01[vcpkg] Output versions during install plans (#14882)ras0219
* [vcpkg] Output versions during install plans * [vcpkg] Display versions for already-installed packages Co-authored-by: Robert Schumacher <roschuma@microsoft.com>
2020-12-01[vcpkg] Remove non-existing 'import' command in vcpkg help information (#14791)Phoebe
* [vcpkg] Remove non-existing 'import' command in vcpkg help information * Remove 'import' in commands.autocomplete.cpp
2020-12-01[vcpkg] Expose alpha end-to-end versioning (#14852)ras0219
* Check for the 'versions' feature flag while installing a manifest * Implement two-level fallback for Baselines: * First, fall back to current repo's baseline.json * Second, fall back to the ports in ports/ * Optimize checking out baseline.json via `git show` * Detect presence of '$x-default-baseline' in the manifest and use that as the baseline commit (to be replaced by Federation functionality) * If port_versions/x-/xyz.json is not found, fall back to ports in ports/ Co-authored-by: Robert Schumacher <roschuma@microsoft.com>
2020-11-30[vcpkg] fix feature flags telemetry (#14856)nicole mazzuca
* [vcpkg] fix feature flags telemetry * change to robert's suggestion
2020-11-30[vcpkg] Add option cmake-args (#12877)Alexander Neumann
* [vcpkg] Add option cmake-args to pass additional args to the script execution * apply clang format to install.cpp * rename command to x-cmake-args * imply editable if x-cmake-args are not empty. * don't use bitwise or * add a definition for CMAKE_SCRIPT_ARG Co-authored-by: wangli28 <wangli28@beyondsoft.com>
2020-11-27[vcpkg] Introduce `create_versioned_install_plan()` (#14633)ras0219
* [vcpkg] Implement constraints in manifests * [vcpkg] Add SourceControlFile::check_against_feature_flags to prevent accidentally ignoring versioning fields * [vcpkg] Switch check_against_feature_flags to accept fs::path * [vcpkg] Implement overrides parsing in manifests * [vcpkg] Address CR comments * [vcpkg] Initial implementation of create_versioned_install_plan() * [vcpkg] Implement port-version minimums * [vcpkg] Implement relaxation phase * [vcpkg] Refactor tests to use check_name_and_version * [vcpkg] Implemented simple relaxed scheme * [vcpkg] More relaxed scheme tests * [vcpkg] Mixed scheme testing * [vcpkg] Support versions and features without defaults * [vcpkg] Support versions and features without defaults 2 * [vcpkg] Only consider greater of toplevel and baseilne * [vcpkg] Implement overrides * [vcpkg] Install defaults * [vcpkg] Handle defaults of transitive packages * [vcpkg] Fix warnings for Span of initializer_list * [vcpkg] Use CMakeVarProvider during versioned install * [vcpkg] Handle inter-feature dependencies * [vcpkg] Correctly handle qualified Dependencies at toplevel * [vcpkg] Address CR comments Co-authored-by: Robert Schumacher <roschuma@microsoft.com>
2020-11-27[vcpkg] Implement VersionedPortfileProvider and BaselineProvider (#14123)Victor Romero
* WIP: Get versions from database files * Fix formatting * Provider inherits ResourceBase * Correct versions JSON file location * Fix formatting * Fix formatting * Fix include in versions.h * Fetch port versions using git tree object * Undo changes to x-history * Remove unnecesary moves Co-authored-by: nicole mazzuca <mazzucan@outlook.com> * Extract Git manipulation code * [WIP] Review comments * [WIP] Review comments pt. 2 * [WIP] Review comments / fix formatting * Generate baseline.json * Extract deserializers from registries source file * BaselineProvider initial implementation * Modify gitignore * Update .gitignore again * Use JSON deserializer for versions db * Lazy load baseline file * Fetch baseline.json from baseline commit * More git abstractions * Clean up code * Path helpers * Formatting * Move data into impl object * Use implementation object for VersionedPortfileProvider * Reuse cloned instance for checkouts * Code cleanup and formatting * Fix returning dangling reference * Prepare to remove files in port_versions/ * Remove files in port_versions/ * Update .gitignore * Some PR review comments * Use StringView * More StringView conversions * More refactoring * Make some implementation members private * Functions for parsing baseline and version files * Hide deserializers implementation * Check for `versions` feature flag in registries. Co-authored-by: Robert Schumacher <roschuma@microsoft.com> Co-authored-by: nicole mazzuca <mazzucan@outlook.com>
2020-11-25[vcpkg] Fix redefinition for OVERLAY_TRIPLETS_ENV (#14744)肥猫零零七
* Update vcpkgcmdarguments.cpp Fix the bug for master branch, the var of OVERLAY_TRIPLETS_ENV be defined two times (the lines of 923 and 925 ) [69/83] Building CXX object CMakeFiles/vcpkglib.dir/src/vcpkg/vcpkgcmdarguments.cpp.o FAILED: CMakeFiles/vcpkglib.dir/src/vcpkg/vcpkgcmdarguments.cpp.o /usr/local/bin/g++-6 -DVCPKG_USE_STD_FILESYSTEM=0 -I../include -O3 -DNDEBUG -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk -include /Users/lizhipeng/develop/project/git_project/opensource/c++/vcpkg/toolsrc/include/pch.h -std=c++1z -MD -MT CMakeFiles/vcpkglib.dir/src/vcpkg/vcpkgcmdarguments.cpp.o -MF CMakeFiles/vcpkglib.dir/src/vcpkg/vcpkgcmdarguments.cpp.o.d -o CMakeFiles/vcpkglib.dir/src/vcpkg/vcpkgcmdarguments.cpp.o -c ../src/vcpkg/vcpkgcmdarguments.cpp ../src/vcpkg/vcpkgcmdarguments.cpp:925:48: error: redefinition of 'constexpr const vcpkg::StringLiteral vcpkg::VcpkgCmdArguments::OVERLAY_TRIPLETS_ENV' constexpr StringLiteral VcpkgCmdArguments::OVERLAY_TRIPLETS_ENV; ^~~~~~~~~~~~~~~~~~~~ In file included from ../src/vcpkg/vcpkgcmdarguments.cpp:9:0: ../include/vcpkg/vcpkgcmdarguments.h:145:40: note: 'constexpr const vcpkg::StringLiteral vcpkg::VcpkgCmdArguments::OVERLAY_TRIPLETS_ENV' previously defined here constexpr static StringLiteral OVERLAY_TRIPLETS_ENV = "VCPKG_OVERLAY_TRIPLETS"; * Update toolsrc/src/vcpkg/vcpkgcmdarguments.cpp Co-authored-by: NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com>
2020-11-25[vcpkg] Increment number of retries and timeout of fs.rename() (#13931)mapozyan
* Fix retry logic for fs.rename() * Increase timeout for fs.rename(), add diagnostic message * Make formatting happy * Exponential backoff for archive file rename * Remove random local file from last commit * Remove random local file from last commit * Update toolsrc/src/vcpkg/archives.cpp Co-authored-by: Mikayel Apozyan <Mikayel.Apozyan@avira.com> Co-authored-by: nicole mazzuca <mazzucan@outlook.com>
2020-11-23[vcpkg] initial openbsd (community) support (#14549)Joakim L. Gilje
* initial openbsd support in vcpkg * after clang-format * hardcoded in the preferred compiler for openbsd in bootstrap scipt (thanks @tormfinn) * Fetch a patched pkg-config because openbsd pkg-config lacks {fcfiledir} * fixes from review feedback * corrected hash for pkg-config.openbsd * re-added missing endif() * regenerate docs * Update scripts/cmake/vcpkg_configure_meson.cmake Co-authored-by: Nicole Mazzuca <mazzucan@outlook.com>