Skip to content

vcpkg manifest mode dependencies default-features not work #12186

@linquize

Description

@linquize

vcpkg: c8ebb5a
I want to perform vcpkg install libarchive[core] in manifest mode.
Note: libarchive has a list of Default-Features: bzip2, libxml2, lz4, lzma, lzo, openssl, zstd

Here is my vcpkg.json

{
  "name": "project1",
  "version-string": "0.0.1",
  "dependencies": [
    {
      "name": "libarchive",
      "default-features": false
    },
    "jsoncpp"
  ]
}

But shows error

Error: There are invalid field types in the CONTROL or manifest file of C:\project1\vcpkg.json
 The following fields had the wrong types:
 
     default-features was expected to be a boolean

The following packages will be built and installed:
  * bzip2[core]:x64-windows
    jsoncpp[core]:x64-windows
    libarchive[bzip2,core,libxml2,lz4,lzma,lzo,openssl,zstd]:x64-windows
  * libiconv[core]:x64-windows
  * liblzma[core]:x64-windows
  * libxml2[core]:x64-windows
  * lz4[core]:x64-windows
  * lzo[core]:x64-windows
  * openssl[core]:x64-windows
  * openssl-windows[core]:x64-windows
  * xxhash[core]:x64-windows
  * zlib[core]:x64-windows
  * zstd[core]:x64-windows
Additional packages (*) will be modified to complete this operation.

Expected result:

The following packages will be built and installed:
    jsoncpp[core]:x64-windows
    libarchive[core]:x64-windows
  * zlib[core]:x64-windows
Additional packages (*) will be modified to complete this operation.

Metadata

Metadata

Assignees

Labels

category:vcpkg-bugThe issue is with the vcpkg system (including helper scripts in `scripts/cmake/`)info:manifestsThis PR or Issue pertains to the Manifests feature

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions