Skip to content
This repository has been archived by the owner on Oct 22, 2021. It is now read-only.

Commit

Permalink
Use a patched archiver
Browse files Browse the repository at this point in the history
  • Loading branch information
viovanov committed Nov 22, 2018
1 parent ec9f445 commit f11b26d
Show file tree
Hide file tree
Showing 22 changed files with 777 additions and 2,655 deletions.
15 changes: 4 additions & 11 deletions Gopkg.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Gopkg.toml
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@

[[constraint]]
name = "github.com/mholt/archiver"
version = "3.1.0"
version = "2.1.0"

[[constraint]]
name = "github.com/pborman/uuid"
Expand Down
5 changes: 2 additions & 3 deletions compilator/storage.go
Original file line number Diff line number Diff line change
Expand Up @@ -191,9 +191,8 @@ func (p *PackageStorage) Download(pack *model.Package, progressEvent DownloadPro
}

// Unpack the compiled contents
err = archiver.DefaultTar.Extract(
err = archiver.Tar.Open(
path,
"",
filepath.Join(p.CompilationWorkDir, pack.Fingerprint),
)

Expand All @@ -210,7 +209,7 @@ func (p *PackageStorage) Upload(pack *model.Package) error {
}

// Archive (tar) the contents
err = archiver.DefaultTar.Archive([]string{pack.GetPackageCompiledDir(p.CompilationWorkDir)}, archiveName)
err = archiver.Tar.Make(archiveName, []string{pack.GetPackageCompiledDir(p.CompilationWorkDir)})
// Cleanup the archive when done
defer os.RemoveAll(archiveName)

Expand Down
2 changes: 1 addition & 1 deletion model/roles.go
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ func (m *RoleManifest) loadReleaseReferences() ([]*Release, error) {
}()

// unpack
err = archiver.DefaultTarGz.Extract(finalReleaseTarballPath, "", finalReleaseUnpackedPath)
err = archiver.TarGz.Open(finalReleaseTarballPath, finalReleaseUnpackedPath)
if err != nil {
allErrs = multierror.Append(allErrs, err)
return
Expand Down
193 changes: 30 additions & 163 deletions vendor/github.com/mholt/archiver/README.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 8 additions & 7 deletions vendor/github.com/mholt/archiver/appveyor.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit f11b26d

Please sign in to comment.