Open linquize opened 4 years ago
@ras0219-msft @dan-shaw Since this scene is too harsh, do we need to consider fixing this issue?
This is a vcpkg bug, but we'll need to fix other issues.
This is by design but could use improvement. Vcpkg probably should compact the database on exit in addition to on startup.
A workaround could be to issue a list
command before making the filesystem read only. This will cause vcpkg to consolidate the DB, which should remove the need for future writes.
See https://github.com/microsoft/vcpkg/issues/13097#issuecomment-763131958.
Describe the bug
Cannot load status db when filesystem is readonly
Environment
To Reproduce Steps to reproduce the behavior:
Expected behavior No error.
zlib:x64-windows 1.2.11-6 A compression library
Additional context If
C:\vcpkg\installed\vcpkg\status
is written immediately beforevcpkg install
exits, instead of lazy write on subsequent load, it won't fail on a readonly filesystem.vcpkg update
andvcpkg upgrade
also fail.If you run
vcpkg list
once then make readonly, subsequentvcpkg list
will succeed.