c8f35d3 --ext: option to specify file type
fd5996a Add a way to strip top-level folder
10fd729 Add create-evil-tar.go and create-evil-zip.go
858e52c Add exported encoder/decoder opts for zstd
✅ a9434ff Add test
fea6146 Added IllegalPathError
✅ a723054 Added test cases for archive formats
b0ffd5a Implement StripComponents to rar
2e9f979 Implement StripComponents to zip
8217ed3 Prevent arbitrary file overwrite via path traversal (Zip Slip attack)
👕 be59044 Remove bundling of GoLangCI Lint as a dependency.
👕 c7eae9d Resolve a few go lint issues
✅ 7d5af0e add double-evil.tar and double-evil.zip inside testdata/testarchives/evilarchives
279e87c use proper mode and type flags
👷 44285f7 Add CI check to ensure module definition is correct (#198)
3719b73 Disable ZIP+LZMA (#226)
🛠 11f2ffb Fix hard links (fixes #152)
✅ 0c5dd86 Fix import path in test (#197)
🛠 9ea51e7 Fixes Tar.Extract when extracting hardlinked files (#171)
🔀 14b2737 Merge branch 'fix-hardlinks'
⚡️ b44e6c6 Update compression package (#219)
🚀 45ba413 add vesrion and goreleaser support
⚡️ d939c22 go.mod: Update github.com/pierrec/lz4 to module version (#192)
⚡️ 6041b49 go.mod: update github.com/andybalholm/brotli to v1.0.0 (#193)
737ceae make README.md Prettier
👕 bc267dd soothe the linters
⚡️ fd74bb2 update .gitignore
⚡️ f902af7 update and lock tooling/deps
⚡️ df15b2f update pipeline with supported versions and make fast
🔧 d44471c zip: Configurable algorithms: zstd/lzma/bzip2 (#223)
v3.3.0November 14, 2019
🐎 Archiver 3.2 sports massive performance improvements for gzip (thanks to @klauspost's parallel gzip implementation, which is now used by default) and support for brotli and zstandard formats, along with a few other fixes and improvements.
This library is now a Go module as well.
A few minor internal tweaks/improvements.
🚀 This release adds some new convenience functions for working with archive files or compressing/decompressing files:
DecompressFile(). These functions are format-agnostic, and they determine which format to use by the filename (or file header, in the case of Unarchive). This way, you don't have to
switchbased on file extension for these simple operations. The library does it for you.
Also exposed are new, slightly lower-level functions, for performing format matching:
📚 See the godoc documentation for more details.
🚀 This patch release fixes several bugs related to pathing operations when creating archives and fixes an issue listing the contents of zip archives. All users should upgrade.
📦 Totally rewrote the archiver package, basically from scratch. Fixed many issues and implemented many new features. The command has been renamed from
arcand now has several different functions, instead of just "make" and "open" (which have also been renamed). The package is capable of traversing archives, extracting specific files, and streaming archive data without touching the file system.