From 7dcbfd713cf6c8729e69d1b0898de9426a078ffa Mon Sep 17 00:00:00 2001 From: Umberto Baldi <34278123+umbynos@users.noreply.github.com> Date: Fri, 21 Aug 2020 13:25:58 +0200 Subject: [PATCH] release v3 (#12) --- README.md | 2 +- extract_test.go | 28 ++++++++++++++-------------- extractor_test.go | 2 +- go.mod | 5 ++--- 4 files changed, 18 insertions(+), 19 deletions(-) diff --git a/README.md b/README.md index e46ff5a..18b9eea 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ Extract [![Godoc Reference](https://img.shields.io/badge/Godoc-Reference-blue.svg)](https://godoc.org/github.com/codeclysm/extract) - import "github.com/codeclysm/extract" + import "github.com/codeclysm/extract/v3" Package extract allows to extract archives in zip, tar.gz or tar.bz2 formats easily. diff --git a/extract_test.go b/extract_test.go index a0189fd..5f8a35f 100644 --- a/extract_test.go +++ b/extract_test.go @@ -10,7 +10,7 @@ import ( "strings" "testing" - "github.com/codeclysm/extract" + "github.com/codeclysm/extract/v3" ) type Files map[string]string @@ -149,11 +149,11 @@ var ExtractCases = []struct { }}, {"standard zip with backslashes", "testdata/archive-with-backslashes.zip", nil, Files{ - "": "dir", - "/AZ3166": "dir", - "/AZ3166/libraries": "dir", - "/AZ3166/libraries/AzureIoT": "dir", - "/AZ3166/libraries/AzureIoT/keywords.txt": "Azure", + "": "dir", + "/AZ3166": "dir", + "/AZ3166/libraries": "dir", + "/AZ3166/libraries/AzureIoT": "dir", + "/AZ3166/libraries/AzureIoT/keywords.txt": "Azure", "/AZ3166/cores": "dir", "/AZ3166/cores/arduino": "dir", "/AZ3166/cores/arduino/azure-iot-sdk-c": "dir", @@ -161,14 +161,14 @@ var ExtractCases = []struct { "/AZ3166/cores/arduino/azure-iot-sdk-c/umqtt/src": "dir", }}, {"shift zip with backslashes", "testdata/archive-with-backslashes.zip", shift, Files{ - "": "dir", - "/libraries": "dir", - "/libraries/AzureIoT": "dir", - "/libraries/AzureIoT/keywords.txt": "Azure", - "/cores": "dir", - "/cores/arduino": "dir", - "/cores/arduino/azure-iot-sdk-c": "dir", - "/cores/arduino/azure-iot-sdk-c/umqtt": "dir", + "": "dir", + "/libraries": "dir", + "/libraries/AzureIoT": "dir", + "/libraries/AzureIoT/keywords.txt": "Azure", + "/cores": "dir", + "/cores/arduino": "dir", + "/cores/arduino/azure-iot-sdk-c": "dir", + "/cores/arduino/azure-iot-sdk-c/umqtt": "dir", "/cores/arduino/azure-iot-sdk-c/umqtt/src": "dir", }}, } diff --git a/extractor_test.go b/extractor_test.go index 6f73dad..60ce252 100644 --- a/extractor_test.go +++ b/extractor_test.go @@ -8,7 +8,7 @@ import ( "path/filepath" "testing" - "github.com/codeclysm/extract" + "github.com/codeclysm/extract/v3" ) func TestExtractor_Tar(t *testing.T) { diff --git a/go.mod b/go.mod index 8642206..6fa9fd1 100644 --- a/go.mod +++ b/go.mod @@ -1,14 +1,13 @@ -module github.com/codeclysm/extract +module github.com/codeclysm/extract/v3 go 1.14 require ( - github.com/davecgh/go-spew v1.1.1 + github.com/davecgh/go-spew v1.1.1 // indirect github.com/h2non/filetype v1.0.6 github.com/juju/errors v0.0.0-20181118221551-089d3ea4e4d5 github.com/juju/testing v0.0.0-20200510222523-6c8c298c77a0 // indirect github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e // indirect - github.com/pmezard/go-difflib v1.0.0 github.com/stretchr/testify v1.3.0 gopkg.in/check.v1 v1.0.0-20200227125254-8fa46927fb4f // indirect )