Describe the bug
vcpkg env command is broken when using --tools flag.
Environment
To Reproduce
Steps to reproduce the behavior:
- Get
vcpkg sources at commit id eb9cb29, and bootstrap.
- Launch the following:
.\vcpkg.exe env --bin --tools --python set
get_directories_non_recursive(D:\repos\vcpkg\installed\x86-windows\tools): The system cannot find the path specified.
It repro when the --tools is being passed.
Expected behavior
It should execute properly the provided command, i.e. set
Additional context
The error is happening since commit id dee2b65c7c565697d38b74f26534e62d1f502a89, where the call to get_directories_non_recursive were introduced.
Note that it looks that API triggers the error when a non existing directory is provided. If such direcotry reported in the error is created (e.g., mkdir installed\x86-windows\tools), then invoking vcpkg env --tools set just works.
@ras0219-msft @BillyONeal FYI
Describe the bug
vcpkg envcommand is broken when using--toolsflag.Environment
To Reproduce
Steps to reproduce the behavior:
vcpkgsources at commit id eb9cb29, and bootstrap.It repro when the --tools is being passed.
Expected behavior
It should execute properly the provided command, i.e.
setAdditional context
The error is happening since commit id dee2b65c7c565697d38b74f26534e62d1f502a89, where the call to
get_directories_non_recursivewere introduced.Note that it looks that API triggers the error when a non existing directory is provided. If such direcotry reported in the error is created (e.g., mkdir
installed\x86-windows\tools), then invokingvcpkg env --tools setjust works.@ras0219-msft @BillyONeal FYI