x-update-baseline does not respect reference (git branch) #38701
Labels
category:vcpkg-bug
The issue is with the vcpkg system (including helper scripts in `scripts/cmake/`)
requires:tool-release
An issue that has been fixed in the microsoft/vcpkg-tool repo and is waiting for a release thereof
Describe the bug
Updating the baseline in vcpkg-configuration.json ignores the reference. If another commit in the repository is newer. even in another branch (or only main?) it is used.
Environment
Not OS specific
To Reproduce
Steps to reproduce the behavior:
vcpkg x-update-baseline --dry-run
Expected behavior
It should respect the reference. The commit starting 15529dd is the head of that branch and does not need changing.
Additional context
The alternative I have is below, but I think
x-update
baseline` should do this by default, as it's the least surprising option. Switching to another reference (ie changing branch to main) should be behind an option.edit: I don't know this program or cpp, but should HEAD be here? https://github.com/microsoft/vcpkg-tool/blob/main/src/vcpkg/configuration.cpp#L695
The text was updated successfully, but these errors were encountered: