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

41 Коммитов

Автор SHA1 Сообщение Дата
Billy O'Neal 9317fb2ddb
Allow "baseline" in filesystem registries. (#1463)
Related: https://github.com/microsoft/vcpkg/issues/30939
2024-07-30 11:11:27 -07:00
Billy O'Neal 0e30cb1561
Rename the shell function to 'vcpkg-shell'. (#1442) 2024-07-26 15:46:47 -07:00
WangWeiLin-MV 998c893164
Fix package pattern in json schema configuration registry (#1429) 2024-07-25 13:40:53 -07:00
Billy O'Neal 565c33b88c
Update the vcpkg-tool-release-process docs. (#1424) 2024-06-10 21:22:26 -07:00
mathis-west-1 6081c15763
Use correct branch name in json schema ids (#1402)
The `$id` fields in all JSON schemas were wrongly referring to a
non-existent `master` branch. This isn't too bad because GitHub has some
magic to fall back to the default branch when non-existent `master`
branches are requested, but it is still incorrect. Fix it.
2024-05-06 10:23:49 -07:00
Billy O'Neal c05f470eb2
Accept arbitrary version formats in overrides. (#1329)
* Accept arbitrary version formats in overrides.

We accidentally implemented the overrides deserializer to reject non-relaxed-versions in "overrides", despite the original intent that overrides are scheme-less. Note how the original schema:

https://github.com/microsoft/vcpkg-tool/pull/1209

, and original documentation:

https://github.com/microsoft/vcpkg-docs/pull/159

said everything should be accepted here.

Also fix our example printing when we're asking users to add overrides to ensure it is valid JSON.

* Implement preferring putting the port-version into the version text.

* Rename GenericVersionDeserializer to BaselineVersionTagDeserializer.
2024-03-01 22:40:33 +00:00
Billy O'Neal 1767aaee7b
dos2unix all the things (#1289)
* dos2unix all the things except for those that should have CRLFs

* Fix version DB.
2023-11-27 15:02:21 -08:00
Billy O'Neal a2133ee04e
Add test for artifacts activation in Visual Studio 2023-10-23 13:19:53 -07:00
Billy O'Neal e658895c8b
Fix checklist feedback about tool and registry releases from @data-queue. (#1244)
* More @data-queue feedback.

* Get rid of from/to
2023-10-20 12:27:43 -07:00
Billy O'Neal f40f40c912
Add vcpkg_tool_release_process bugfixes from review with @data-queue . (#1236) 2023-10-17 20:21:08 -07:00
Robert Schumacher aedbe0424d
Extract msg:: removal from #1210 (#1227) 2023-10-10 15:27:30 -07:00
Billy O'Neal 96851de5df
Add z-changelog; replacement for scripts/Get-Changelog.ps1 (#1200) 2023-10-03 22:49:25 -07:00
Billy O'Neal c3710bc5f8
Correct schema for version overrides to show that they accept a scheme and embedded port-versions. (#1209) 2023-09-28 16:36:08 -07:00
Billy O'Neal 785af0d180
Add missing `vcpkg use cmake` to tool release instructions. (#1202) 2023-09-22 15:20:40 -07:00
Billy O'Neal e6c0307088
Make help be consistent. (#1169)
* Add name, synopsis, and example information to CommandMetadata.
* Clean up needing to make thunks for all help text in command metadata machinery.
* Power autocomplete and help with the same tables that power command lookup. Resolves this line item first discovered in https://github.com/microsoft/vcpkg-tool/pull/1164
* Improve help by printing synopsis and grouped examples powered by CommandMetadata.
* Update the main usage to make sure every relevant command is included.
* Add website link to all help commands.
* split rarely used and artifacts into separate `vcpkg help commands` from @ras0219-msft
* make tense for all synopsis and argument help text consistent from @ras0219-msft
* burninate 'instead of' and 'writes out'
* Deduplicate the all commands help topic and remove 'vcpkg' from 'vcpkg help blah'.
2023-09-06 23:55:19 -07:00
Billy O'Neal 71253a3b04
Add initial command guidelines and make all commands follow them. (#1164) 2023-08-23 13:06:09 -07:00
Billy O'Neal b03c2b2203
Update tool release process for script (#1152)
* Update tool release process for script

Documents the release process change as of https://github.com/microsoft/vcpkg/pull/32885

* Update docs/vcpkg_tool_release_process.md
2023-08-09 22:25:32 -07:00
autoantwort 51bd5bdf0f
Allow features with platform expressions (#813) 2023-07-25 17:58:44 -07:00
autoantwort 639134136b
Update schema definition (#1107) 2023-06-22 12:11:10 -07:00
Billy O'Neal 327c988d62
Delete note about running the artifacts tests before shipping a tool now that GitHub Actions runs that on every PR. (#1093) 2023-06-12 15:51:50 -07:00
Billy O'Neal 041e75adae
Publish symbols automatically. (#1072)
* Publish symbols automatically.

* Oops, use @4.

* Remove meaningless PackageVersion
2023-05-19 12:55:34 -07:00
Billy O'Neal a8209614f2
Remove the dependency on rush. (#997)
* Break the txtgen dependency by deleting a test that did nothing.

* Remove the rush dependency and just use npm instead. (Local dev only)

* Wire up npm only mechanisms to PR and signing builds.

* clang-format fix and run

* Fixup PRDiff and signing.yml.

* Chalk is not a dev-dependency.

* Include the SHA in the nuget package name.

* clang-format again

* Add extracting the artifacts parts from the standalone bundle.

* CR comments:

* Don't deploy the mocha file into the signed build
* Use raw uri in tsconfig
* Use npm ci rather than npm install

* CR comments:

* Don't deploy the mocha file into the signed build
* Use raw uri in tsconfig
* Use npm ci rather than npm install

* Fix amd64s I missed.
2023-04-05 20:22:15 -07:00
Robert Schumacher 9c51877bc6
Update localization.md for new macro-enabled loc machinery (#994) 2023-03-30 12:07:25 -07:00
Billy O'Neal d0cdb85449
Update vcpkg release process docs (#993)
* Update vcpkg release process docs to account for the VS and VS Code deployment steps.
2023-03-30 11:22:29 -07:00
Ben McMorran 09149e5d29
Docs for bundled vcpkg updates in Embedded Tools (#953)
* Docs for bundled vcpkg updates in Embedded Tools

* Move step earlier
2023-03-14 15:50:56 -07:00
Billy O'Neal a333c87dba
Allow use to stack on use and activate, but not vice versa. (#944)
* Allow use to stack on use and activate, but not vice versa.

Resolves https://github.com/microsoft/vcpkg/issues/29978

Also adds the ability to e2e test any artifacts things.
Also gets rid of duplicate definition of Record.
Also removes meaningless --project switch from deactivate.
Also localizes error and warning in artifacts messages.
Also warns if the user ran just the exe and we're doing something that needs the postscript file.
Also applies changes from vcpkg-init.ps1 to vcpkg-in-development.ps1.
2023-03-09 14:25:53 -08:00
Billy O'Neal 3621d21ab4
Resurrect release process documentation. (#930)
https://github.com/microsoft/vcpkg/pull/28350 deleted these files without replacement on "learn" because they are internal-to-the-vcpkg-team docs, so they really belong here in the tool repo anyway.
2023-02-28 13:02:25 -08:00
Victor Romero 7119c8d492
Update in-tool documentation URLs (#926)
* Update in-tool URLs

* Apply suggestions from code review

Co-authored-by: Robert Schumacher <roschuma@microsoft.com>

* clang-format

---------

Co-authored-by: Robert Schumacher <roschuma@microsoft.com>
Co-authored-by: Billy Robert O'Neal III <bion@microsoft.com>
2023-02-27 11:24:10 -08:00
Gregor Jasny 7ae0d8527f
Add overlays to configuration schema (#832) 2022-12-14 13:19:52 -06:00
autoantwort b45afb0a42
How to run e2e tests (#806) 2022-11-16 16:05:04 -08:00
Javier Matos Denizac 335ad725cf
Documenting our use of VSLANG (#772)
* documenting our use of VSLANG

* wip

* wip

* done
2022-10-27 11:34:44 -07:00
Billy O'Neal be28b9e46e
Connect vcpkg acquire to the C++ frontend, implement acquire-project. (#709)
* Add parsing of artifact aquistion tags, and remove unconnected "global" settings block.

Drive by fix test harness console spew.

* Delete unused whatIf switch.

* Add acquire and acquire-project commands.

* Inline activateProject into activate, simplify the return type of acquireArtifacts.

* Implement the --tags command line switch.

* Implement the actual acquisition tags feature.

* Revert the actual acquisition tags feature.
2022-10-06 14:35:14 -07:00
Billy O'Neal 3c502fa609
Delete the 'see-also' element from artifacts. (#698)
This field was never connected to anything.
2022-09-12 10:01:33 -07:00
Billy O'Neal dfb82802c8
Add msbuild-specific exports to artifacts, as requested by Olga. (#672)
* Add msbuild-specific exports to artifacts, as requested by Olga.

* Fix recent-ish regression that broke reading files without options blocks.

* Change $(ROOT) to $root$ and remove trailing slash.

* Delete labels, and don't emit things other than 'msbuildproperties' for now.

* Fix test name :)

Co-authored-by: Robert Schumacher <roschuma@microsoft.com>

* 😅

Co-authored-by: Robert Schumacher <roschuma@microsoft.com>

* Add XML special chars test.

* Use curly replacements rather than hard coding $root$ as requested by Robert.

* Add more tests demonstrating that the code is correct.

* Fix nuget comment

Co-authored-by: Robert Schumacher <roschuma@microsoft.com>

* Make mismatched {}s illegal.

Co-authored-by: Robert Schumacher <roschuma@microsoft.com>
2022-08-31 13:51:15 -07:00
Billy O'Neal 47c9449a34
Deduplicate the -default- registries as suggested by Robert. (#666) 2022-08-23 12:43:01 -07:00
Billy O'Neal cd31859c21
Add schemata for vcpkg.json, vcpkg-configuration.json, and artifacts. (#650)
* Initial add of schemata from back in October.

* * Alphabetize definitions.

* Update to json-schema draft 7. This is the latest version that VS Code understands out of the box without errors.
* Fix the version and version-semver entries to use correct semver suffixes
* Allow 'maintainers' to be a string.

This was tested against everything in the vcpkg curated catalog with 3 minor fixes here: https://github.com/microsoft/vcpkg/pull/25939

* Delete dev-dependencies since it doesn't do anything.

* Suck out all common definitions into a referenced schema.

* Commonize 'maintainers'.

* Add how to validate notes.

* Artifacts don't implement version-string, version-date, or version-semver yet.

* More fixes for artifact schema.

* Delete "espidf" option from git installers since it is unreferenced.

* Artifacts done except exports.

* Remove "contents" from "exports" because it is unreferenced.

* Finish artifact schema.

* Don't allow 'apply' or 'unless' in metadata files since apply is unreferenced and unless was removed.

* Last fixups for vcpkg-configuration.json.

* Use enum rather than pattern. Drive by fix command line demo.

* Remove no empty artifact references constraint. ( https://github.com/microsoft/vcpkg-tool/pull/650#discussion_r939058136 )

* Ensure comments are allowed in all object-like places. https://github.com/microsoft/vcpkg-tool/pull/650#discussion_r939068276

* Docs nitpicks.

* Add ^$s to all the regexes.

* Allow naming port-version in overrides.

* Fix "ref" -> "reference" https://github.com/microsoft/vcpkg-tool/pull/650#discussion_r939427544

* Clarify when packages is allowed in registry lists.

* Try to help out intellisense in install blocks.

* Help out intellisense with registries.

* Make name and version optional in vcpkg.json.

* Whoops, default registries shouldn't have packages.
2022-08-19 15:16:20 -07:00
Javier Matos Denizac 0c70a0e64b
Localization redesign (#615)
* - Localization of strings in binarycaching.cpp
- Sorted Declared/Registered messages in alphabetical order.

* - Response to PR comments.

Removed HelpTableFormat message. The HelpTableFormatter needs to be updated to require LocalizedString as input. I intend to do this work in a separate PR.

* Removed repetitive message

* Update locales/messages.en.json

Co-authored-by: Victor Romero <romerosanchezv@gmail.com>

* Update src/vcpkg/binarycaching.cpp

Co-authored-by: Victor Romero <romerosanchezv@gmail.com>

* Update src/vcpkg/binarycaching.cpp

Co-authored-by: Victor Romero <romerosanchezv@gmail.com>

* Update src/vcpkg/binarycaching.cpp

Co-authored-by: Victor Romero <romerosanchezv@gmail.com>

* Update src/vcpkg/binarycaching.cpp

Co-authored-by: Victor Romero <romerosanchezv@gmail.com>

* Update src/vcpkg/binarycaching.cpp

Co-authored-by: Victor Romero <romerosanchezv@gmail.com>

* Moving declared messages to messages.h and registering in messages.cpp.

* Add message to ReplaceSecretsError

* Moved localized messages from commands.generate-messages.cpp to messages.h/cpp

* Moved localized messages from commands.update-baseline.cpp to messages.h/cpp

* Moved localized messsages from commands.version.cpp to messages.h/cpp

* Moved localized messages from configuration.cpp to messages.h/cpp

* Moved localized messages from configure-environment.cpp to messages.h/cpp

* Moved localized messages from dependencies.cpp and install.cpp to message.h/cpp

* Moved localized messages from paragraphs.cpp and sourceparagraph.cpp to messages.h/cpp

* Moved localized messages from versions.versions.cpp, visualstudio.cpp, and vcpkg.cpp to messages.h/cpp

* Moved localized messages from files.cpp, git.cpp, hash.cpp, vcpkgpaths.cpp, checks.cpp, and downloads.cpp to messages.h/cpp

* Moved localized messages from system.cpp, strings.cpp, system.process.cpp, cmakevars.cpp, commands.ci.cpp, install.cpp, packagespec.cpp, portfileprovider.cpp, registries.cpp, tools.cpp, and main.cpp to messages.h/cpp

* Sort registered messages

* Sorted declared messages.

* Grammar fixes

* Update documentation

* Moved localized messages from binarycaching.cpp to messages.h/cpp

* Sort message declarations

* Sort messages

* Typo Fix

* update json

* resolve conflict

* Add missing namespace

* Remove DECLARE_AND_REGISTER_MESSAGE since it will no longer be used.

* - Added DECLARE_AND_REGISTER_MESSAGE

	- Fuzz help messages need to be unlocalized. This change will occur in another print
- Moved localized messages from messages.h/cpp to main.cpp
	- Messages need to be unlocalized.

Co-authored-by: Javier Matos <Javiermat@microsoft.com>
Co-authored-by: Victor Romero <romerosanchezv@gmail.com>
2022-07-07 13:38:15 -07:00
Billy O'Neal 706d748de5
Delete LocalizedString::appendnl. (#547)
I believe appendnl hails from a time when we thought we were going to be much more rigid about manipulation of LocalizedStrings as tokens. There are localized strings which themselves contain newlines. There are also formatted data strings, such as error message blocks join'd with \n, that we need to insert into localized messages. We also aren't likely to ever want to change our newlines to \r\n or something like that :)

To that end, I think both original reasons for this to exist are gone, and it should go away.

I think we should go all the way to removal rather than only removing the guidelines about it, because I think we, and contributors, will be confused if it exists and is relatively meaningless in the same way that people are confused (and use) std::endl today. The fact is that newlines aren't special in our LocalizedString structures, and we should be honest about that in our design.

Contrast/note: append_indent must stay, and we must add a plain std::string version of that, to ensure consistency in how we handle indenting, as this is likely to be actually ambiguous (as opposed to newlines which are always and forever \n in vcpkg).
2022-05-23 11:06:14 -07:00
nicole mazzuca 27cb637b65
[docs] add localization doc (#462)
* [docs] add localization doc

* CRs

* vicroms CRs

Co-authored-by: Victor Romero <romerosanchezv@gmail.com>

Co-authored-by: nicole mazzuca <mazzucan@outlook.com>
Co-authored-by: Victor Romero <romerosanchezv@gmail.com>
2022-03-31 14:37:04 -07:00
Clare Macrae 4f2b39ac62
Add docs to set VCPKG_ROOT to run tests (#45) 2021-04-06 15:55:36 -07:00
Billy Robert O'Neal III 26bcbaff4c Transfer docs. 2021-02-03 12:52:52 -08:00