Skip to content

Fix undefined ${manifest} in vcpkg auto-update workflow#6336

Merged
Fedr merged 1 commit into
masterfrom
fix-vcpkg-update-jq-manifest
Jun 28, 2026
Merged

Fix undefined ${manifest} in vcpkg auto-update workflow#6336
Fedr merged 1 commit into
masterfrom
fix-vcpkg-update-jq-manifest

Conversation

@Fedr

@Fedr Fedr commented Jun 28, 2026

Copy link
Copy Markdown
Contributor

Problem

The scheduled Update Vcpkg Tag workflow (update-vcpkg-tag job) failed in the Bump vcpkg step with:

jq: error: Could not open file : No such file or directory
##[error]Process completed with exit code 2.

Root cause

Introduced in #6230 ("Add experimental vcpkg manifest file", merged 2026-06-09). That PR added the manifest-baseline logic to the Bump vcpkg step, including a jq call that references an undefined ${manifest} variable, so jq always receives an empty filename:

current_vcpkg_baseline=$(jq -r '.configuration["default-registry"].baseline' "${manifest}")

The neighboring sed lines added in the same hunk already hard-code the manifest path ./thirdparty/vcpkg/vcpkg.json.

The bug stayed latent because the Bump vcpkg step only runs when need_vcpkg_update == 'true' (i.e. a newer vcpkg release exists). The Jun 14 and Jun 21 scheduled runs passed only because the tag was unchanged and the step was skipped; the Jun 28 run was the first to actually execute the line after a new release appeared, so it failed.

Fix

Use the same hard-coded manifest path the surrounding lines use.

Verified by dispatching the workflow on this branch: the run completed successfully and produced the (previously stuck) bump PR #6337.

Workflow-only change — no build platform is affected, so all disable-build-* labels are applied.

The update-vcpkg-tag job failed in the Bump vcpkg step with
"jq: error: Could not open file" because ${manifest} was never
defined. Use the hard-coded manifest path ./thirdparty/vcpkg/vcpkg.json
that the neighboring sed lines already reference.
@Fedr Fedr merged commit 8841fcf into master Jun 28, 2026
26 checks passed
@Fedr Fedr deleted the fix-vcpkg-update-jq-manifest branch June 28, 2026 08:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant