Skip to content

Build error after package installation failed #23437

Description

Describe the bug
When package installation failed, strange error sometimes appears in console. I can fix it manually, but it is some type of bug in my opinion.

Environment

  • OS: Windows-11
  • Compiler: visual c++ 2022

To Reproduce
Steps to reproduce the behavior:

  1. ./vcpkg install [any package]
  2. After installation failed
  3. The error occurs:
    "
    Error: while loading [any]:
    The port directory (<vcpkg_dir>\ports[any]) does not exist
    Error: failed to load port from <vcpkg_dir>\ports[any]
    Note: Updating vcpkg by rerunning bootstrap-vcpkg may resolve this failure.
    Repro code when
    "

Expected behavior
A clear and concise description of what you expected to happen.
It doesn't have to see like that.

Failure logs
-(please attached failure logs)

Error: while loading [any]:
The port directory (<vcpkg_dir>\ports[any]) does not exist
Error: failed to load port from <vcpkg_dir>\ports[any]
Note: Updating vcpkg by rerunning bootstrap-vcpkg may resolve this failure.
Repro code when

Additional context
How i fix it manually:

  1. cd <vcpkg_dir>\installed\vcpkg
  2. open status. All installed package list is here.
  3. Find the failed package
  4. Remove it
  5. Save the file and close
  6. restart console (really close the window)
  7. back to work

Metadata

Metadata

Labels

requires:reproThe issue is not currently repro-able

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions