Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build: bootstrap vcpkg before nuget restore #17592

Merged
merged 3 commits into from
Jul 22, 2024

Conversation

DHowett
Copy link
Member

@DHowett DHowett commented Jul 20, 2024

nuget restore actually runs through MSBuild! However, #15855 added a dependency from our project on a system-installed or locally detected vcpkg.targets (or .props).

Our build runs nuget restore before finding or installing vcpkg, so the rules in our project file would try to import vcpkg before it had been found (or installed).

On build agents with vcpkg installed via the VS workload, this was fine: we would import the one that came with VS and go on our merry way. On build agents where it needs to be installed locally, it could not be imported.

The fix in this PR is to install/bootstrap vcpkg before running nuget.

I tried to isolate the vcpkg rules to only run in the absence of nuget, but that didn't work.

@DHowett DHowett changed the title Stop the build from trying to import vcpkg during nuget restore WIP Stop the build from trying to import vcpkg during nuget restore Jul 20, 2024
@DHowett DHowett changed the title WIP Stop the build from trying to import vcpkg during nuget restore build: bootstrap vcpkg before nuget restore Jul 22, 2024
@DHowett DHowett merged commit cbc8eed into main Jul 22, 2024
21 of 25 checks passed
@DHowett DHowett deleted the dev/duhowett/fix-nuget-fix-vcpkg branch July 22, 2024 17:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants