Skip to content

vcpkg export with feature does not work anymore #22913

@gix

Description

@gix

Describe the bug

vcpkg export fails when using features. This recently broke (probably microsoft/vcpkg-tool#298?).

Environment

  • OS: Windows
  • Compiler: N/A

To Reproduce
Steps to reproduce the behavior:

  1. .\vcpkg.exe install 'abseil[cxx17]'

  2. .\vcpkg export abseil[cxx17] --nuget

    Error: List of features is not allowed in this contectExample:
      vcpkg export zlib zlib:x64-windows boost --nuget
    
  3. .\vcpkg export abseil --nuget

    The following packages need to be built:
        abseil:x86-windows
    There are packages that have not been built.
    To build them, run:
        vcpkg install abseil:x86-windows
    

Expected behavior
Exporting a port with feature works as before.

Metadata

Metadata

Labels

Stalecategory:vcpkg-bugThe issue is with the vcpkg system (including helper scripts in `scripts/cmake/`)

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions