I don't think this is currently supported but agree it would be an
improvement. Can you open a feature request over on our GitHub?

On Wed, May 13, 2020 at 7:48 AM Kotofos online <[email protected]> wrote:

> Hi, I'm having troubles compressing artifact using "compress" post
> processor. The resulting .zip file has full path inside i.e.
> "/Users/username/project/vm.ova" instead of just vm.ova. When extracting
> such archive, whole directory path is created. This is unwanted behavior.
>
> json part looks like this:
>
> {
>   "type": "compress",
>   "output": "{{user `OUTPUTDIR`}}/vm.ova.zip",
>   "compression_level": 9,
> }
>
> I do not see any parameters to pass, like -j for zip to fix that.
>
> Related https://superuser.com/questions/119649/avoid-unwanted-path-in-zip-file
>
> --
> This mailing list is governed under the HashiCorp Community Guidelines -
> https://www.hashicorp.com/community-guidelines.html. Behavior in
> violation of those guidelines may result in your removal from this mailing
> list.
>
> GitHub Issues: https://github.com/mitchellh/packer/issues
> IRC: #packer-tool on Freenode
> ---
> You received this message because you are subscribed to the Google Groups
> "Packer" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/packer-tool/0f668384-ed94-418c-905d-e02181d71bde%40googlegroups.com
> <https://groups.google.com/d/msgid/packer-tool/0f668384-ed94-418c-905d-e02181d71bde%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
This mailing list is governed under the HashiCorp Community Guidelines - 
https://www.hashicorp.com/community-guidelines.html. Behavior in violation of 
those guidelines may result in your removal from this mailing list.

GitHub Issues: https://github.com/mitchellh/packer/issues
IRC: #packer-tool on Freenode
--- 
You received this message because you are subscribed to the Google Groups 
"Packer" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/packer-tool/CAGPV1upr8g-hipCOAYj-_rcpRLiFc3FkVUdgz5RUVZLUd%3DRV8Q%40mail.gmail.com.

Reply via email to