Describe the bug
Running .\vcpkg.exe install {port} --head for a port which has never been previously installed (and therefore the buildtrees/{port} folder does not exist) fails.
Environment
To Reproduce
Steps to reproduce the behavior:
git clone https://github.com/microsoft/vcpkg vcpkg_reprocd vcpkg_repro.\bootstrap-vcpkg.bat.\vcpkg.exe install {port} --head (nethost is one example)Expected behavior
The port should download and attempt to build.
Actual behavior
The port fails to download due to
Failed to open 'C:\Users\tagoo\source\repos\vcpkg2\buildtrees\nethost\stdout-x86-windows.log' for writing
Failure logs
vcpkg_repro.txt
Additional context
Any scenario where the folder already exists allows the install to succeed.
This includes installing a non --head version or manually creating the folder.
I can confirm this bug on linux as well.
@LilyWangL I am unsure how the label "vcpkg feature" fits here... This is probably more of a regression (installing ports with --head did work properly before!).
@Squareys This is a VCPKG bug. Jack will fix it in pull request.
Hi guys, I've fixed this issue in #10287, please update vcpkg and retry again.
Thanks.
Most helpful comment
Hi guys, I've fixed this issue in #10287, please update vcpkg and retry again.
Thanks.