Skip to content
This repository has been archived by the owner on Nov 19, 2024. It is now read-only.

Releases: mholt/archiver

v3.4.0

24 Oct 23:09
Compare
Choose a tag to compare

Changelog

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

v3.3.2

29 Sep 18:24
c7eae9d
Compare
Choose a tag to compare

Changelog

a723054 Added test cases for archive formats
8217ed3 Prevent arbitrary file overwrite via path traversal (Zip Slip attack)
c7eae9d Resolve a few go lint issues

v3.3.1

25 Sep 23:00
Compare
Choose a tag to compare

Changelog

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)

3.2

23 Jun 22:21
33320f6
Compare
Choose a tag to compare
3.2

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.

3.1.1

04 Dec 00:10
v3.1.1
d572b2e
Compare
Choose a tag to compare

A few minor internal tweaks/improvements.

3.1

18 Nov 22:52
e1ccfb5
Compare
Choose a tag to compare
3.1

This release adds some new convenience functions for working with archive files or compressing/decompressing files: Archive(), Unarchive(), CompressFile(), and 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 switch based 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: ByExtension() and ByHeader().

See the godoc documentation for more details.

3.0.1

13 Nov 05:49
v3.0.1
298df7b
Compare
Choose a tag to compare

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.

3.0

07 Nov 21:08
edeadbb
Compare
Choose a tag to compare
3.0

Totally rewrote the archiver package, basically from scratch. Fixed many issues and implemented many new features. The command has been renamed from archiver to arc and 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.

See the README for a list of what is new, including examples of using the CLI and the Go package. Also check out the godoc reference for the full API documentation.

v2.1: Merge pull request #87 from johnarok/fix-82

10 Sep 00:39
de0d89e
Compare
Choose a tag to compare

This release adds support for lz4 compression (thanks to github.com/pierrec/lz4) and sz compression (thanks to github.com/golang/snappy). It also happens to include a number of bug fixes 😄.

2.0

30 Nov 23:55
v2.0
cdc68dd
Compare
Choose a tag to compare
2.0

This release adds support for .tar.xz (and .txz) file format, thanks to ulikunitz/xz.

The archiver package also has a breaking API change, hence the v2.0 tag. For example, archiver.Zip() and archiver.Unzip() have become archiver.Zip.Make() and archiver.Zip.Open(), respectively.