Missing whitespace in vcpkg portsdiff
output makes parsing output infeasible for long port names
#40030
Labels
category:vcpkg-bug
The issue is with the vcpkg system (including helper scripts in `scripts/cmake/`)
Describe the bug
I am interested in parsing the output of
vcpkg portsdiff
as part of some tooling to automatically update vcpkg manifest files.Currently a regex like
- (\S+)\s+(\S+) -> (\S+)
is capable of extracting nearly all port updates, but it fails for ports which have long names due to vcpkg omitting whitespace. A similar issue impacts the "added ports" section, but I'm not currently parsing that.See https://regex101.com/r/8w4SsK/1 for an example.
Environment
To Reproduce
Steps to reproduce the behavior:
./vcpkg portsdiff 101cc9a69a1061969caf4b73579a34873fdd60fe 821100d967e1737d96414a308e3f7cbe0d1abf18
azure-storage-*
ports.Expected behavior
vcpkg portsdiff
should always have at least one whitespace character between the port name and port version.Failure logs
Console output
Additional context
Maybe there's another entrypoint I should be going through to extract this data?
The text was updated successfully, but these errors were encountered: