Skip to content

Check format of vcpkg.json file in x-add-version #16880

@autoantwort

Description

@autoantwort

The x-add-version command already checks if there are vcpkg.json file changes that are not committed. I should also check if the vcpkg.json file is well formatted.


Is your feature request related to a problem? Please describe.
I use VS Code to edit the vcpkg.json files, but when I save a plugin formats the json file, but in an incompatible format to vcpkg (4 spaces indention). Often I forgot about that, commit the changes, run vcpkg x-add-version ..., commit and push the changes. After a few minutes I see the failure in the pipeline.

Proposed solution
Check if the vcpkg.json file is whell formatted when running vcpkg x-add-version ...

Metadata

Metadata

Labels

category:vcpkg-featureThe issue is a new capability of the tool that doesn’t already exist and we haven’t committed

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions