chef export -a creates corrupted archives on Windows
kenmacleod opened this issue · 2 comments
kenmacleod commented
Description
chef export -a
creates corrupted policy archives on Windows.
Fix to mixlib-archive in chef/mixlib-archive/pull/37
ChefDK Version
ChefDK 3.4.38. Fix created against latest mixlib-archive 0.4.19.
Platform Version
Windows 10
Replication Case
Using ChefDK embedded mixlib/archive directly:
archive-test.rb
require "find"
require "mixlib/archive"
targets = Find.find(".").collect { |e| e }
Mixlib::Archive.new("../arch.tgz").create(targets, gzip: true)
Git bash script to run:
#!/bin/bash
mkdir archive-test
cd archive-test
printf "\0\0\n\0\0\n" >test.bin
ls -l test.bin # 6 bytes
C:/opscode/chefdk/embedded/bin/ruby ../archive-test.rb
tar tvf ../arch.tgz # 8 bytes
kenmacleod commented
Fixed by #1973.
lock commented
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.