Skip to content

Commit

Permalink
chore(deps): pin utils/compress to v0.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
PhilippHeuer committed May 9, 2024
1 parent ea45b53 commit 81f7454
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 12 deletions.
11 changes: 5 additions & 6 deletions archive.go
Original file line number Diff line number Diff line change
@@ -1,26 +1,25 @@
package cidsdk

import (
"github.com/cidverse/cidverseutils/pkg/archive/tar"
"github.com/cidverse/cidverseutils/pkg/archive/zip"
"github.com/cidverse/cidverseutils/compress"
)

// ZIPCreate creates a zip archive of the directory at the given path.
func (sdk SDK) ZIPCreate(inputDirectory string, outputFile string) error {
return zip.Create(inputDirectory, outputFile)
return compress.ZIPCreate(inputDirectory, outputFile)
}

// ZIPExtract unzips the zip archive at the given path into the given directory.
func (sdk SDK) ZIPExtract(archiveFile string, outputDirectory string) error {
return zip.Extract(archiveFile, outputDirectory)
return compress.ZIPExtract(archiveFile, outputDirectory)
}

// TARCreate creates a tar archive of the directory at the given path.
func (sdk SDK) TARCreate(inputDirectory string, outputFile string) error {
return tar.Create(inputDirectory, outputFile)
return compress.TARCreate(inputDirectory, outputFile)
}

// TARExtract extracts a tar archive at the given path into the given directory.
func (sdk SDK) TARExtract(archiveFile string, outputDirectory string) error {
return tar.Extract(archiveFile, outputDirectory)
return compress.TARExtract(archiveFile, outputDirectory)
}
4 changes: 2 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ module github.com/cidverse/cid-sdk-go
go 1.21

require (
github.com/cidverse/cidverseutils v0.0.0-20231103225801-e7f71d0c6aba
github.com/cidverse/cidverseutils/compress v0.1.0
github.com/go-resty/resty/v2 v2.13.0
github.com/google/uuid v1.6.0
github.com/otiai10/copy v1.14.0
Expand All @@ -15,7 +15,7 @@ require (
github.com/pmezard/go-difflib v1.0.0 // indirect
github.com/stretchr/objx v0.5.2 // indirect
golang.org/x/net v0.25.0 // indirect
golang.org/x/sync v0.6.0 // indirect
golang.org/x/sync v0.7.0 // indirect
golang.org/x/sys v0.20.0 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
)
8 changes: 4 additions & 4 deletions go.sum
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
github.com/cidverse/cidverseutils v0.0.0-20231103225801-e7f71d0c6aba h1:7z1+V18zViJmUovZ3P8nIbRdegA5viST6BsBUBNfrMw=
github.com/cidverse/cidverseutils v0.0.0-20231103225801-e7f71d0c6aba/go.mod h1:VRpKsgkaw9kS2Ya7/Hzd2gnbYqiMSSPR9L9ZLaymG04=
github.com/cidverse/cidverseutils/compress v0.1.0 h1:GrCp/50/Ltl3rn/WctHxY6lN+wgoms0qBqYpEbWmiZw=
github.com/cidverse/cidverseutils/compress v0.1.0/go.mod h1:Xga0FDD+hHizd9zH99+DrbqXTAsblYQVEolYiOCN/Ug=
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/go-resty/resty/v2 v2.13.0 h1:joaL6wxSgm1OZal4FAAyddkL1T4uo5NxHYFkGmUusqE=
Expand Down Expand Up @@ -34,8 +34,8 @@ golang.org/x/net v0.25.0/go.mod h1:JkAGAh7GEvH74S6FOH42FLoXpXbE/aqXSrIQjXgsiwM=
golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
golang.org/x/sync v0.0.0-20220722155255-886fb9371eb4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
golang.org/x/sync v0.1.0/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
golang.org/x/sync v0.6.0 h1:5BMeUDZ7vkXGfEr1x9B4bRcTH4lpkTkpdh0T/J+qjbQ=
golang.org/x/sync v0.6.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk=
golang.org/x/sync v0.7.0 h1:YsImfSBoP9QPYL0xyKJPq0gcaJdG3rInoqxTWbfQu9M=
golang.org/x/sync v0.7.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk=
golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
Expand Down

0 comments on commit 81f7454

Please sign in to comment.