Describe the bug
If a port was previously installed with only a subset of available features, upgrading it will always pull in the default features, which may not be desired.
Environment
- OS: Windows
- Compiler: MSVC 2019
To Reproduce
Example with libarchive:
- Check out an older version of vcpkg
./vcpkg install libarchive[core,bzip2,lzma]
git pull
./vcpkg upgrade
- or:
./vcpkg upgrade libarchive
- or even:
./vcpkg upgrade libarchive[core,bzip2,lzma]
All three forms of step 4 cause vcpkg to pull in the full set of default features (libarchive[bzip2,core,libxml2,lz4,lzma,lzo,openssl,zstd]). The last version especially is pretty clearly not what the user intended.
Expected behavior
Only the features requested should be included in the updated package.
Describe the bug
If a port was previously installed with only a subset of available features, upgrading it will always pull in the default features, which may not be desired.
Environment
To Reproduce
Example with libarchive:
./vcpkg install libarchive[core,bzip2,lzma]git pull./vcpkg upgrade./vcpkg upgrade libarchive./vcpkg upgrade libarchive[core,bzip2,lzma]All three forms of step 4 cause vcpkg to pull in the full set of default features (
libarchive[bzip2,core,libxml2,lz4,lzma,lzo,openssl,zstd]). The last version especially is pretty clearly not what the user intended.Expected behavior
Only the features requested should be included in the updated package.