Vcpkg: Is it possible to get rid of date/time top level directory inside exported zip files?

Created on 20 Aug 2020  路  2Comments  路  Source: microsoft/vcpkg

I want each exported zip file to be identical for a given "vcpkg export --zip " command line. By default this is not true as a top directory including the date and time is prepended inside the zip file.

This prevents us from upgrading the used library versions without changing our cmakelists file for the using modules, which is painful.

(We have another system where you specify the name of the zip file to unpack before the build starts).

I did vcpkg help export and read the "requirement specification for export" section without finding any information in this direction. I did notice that the long list of the vcpkg help export was mostly unusable due to not specifying if a path regard _where input files come from_ or _where output files are stored_, by experimentation I found out that all options seem to relate to specifying where input files of different types are, which seems rather useless given that vcpkg decides anyway, while no option I could find controls the resulting structure of the zip file, which I guess many users may want to be able to do.

question

Most helpful comment

if you mean the exported vcpkg-export-<date time>.zip file my team simply changes the name of the output using the --output flag.

vcpkg export zlib:x64-windows --zip --output=vcpkg-export

All 2 comments

if you mean the exported vcpkg-export-<date time>.zip file my team simply changes the name of the output using the --output flag.

vcpkg export zlib:x64-windows --zip --output=vcpkg-export

Hi @BengtGustafsson
Thanks for posting this issue.

Does the suggestion from @ASxa86 meet your demands?

Was this page helpful?
0 / 5 - 0 ratings