Postprocessor compress - do not include full path to zip archive on mac os

18 views
Skip to first unread message

Kotofos online

unread,
May 13, 2020, 10:48:18 AM5/13/20
to Packer
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

Megan Marsh

unread,
May 13, 2020, 2:25:10 PM5/13/20
to packe...@googlegroups.com
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?

--
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 packer-tool...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/packer-tool/0f668384-ed94-418c-905d-e02181d71bde%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages