From bb8b37cbeb7a18ca6b7574ae479b1090d74858fd Mon Sep 17 00:00:00 2001 From: Will Rouesnel Date: Wed, 3 Jul 2019 22:44:24 +1000 Subject: [PATCH] Revert "Updated the magefile.go to use new version of archiver library" This reverts commit 6585e6672fa0fab8599d4db6f48e34df33859b19. There's been some weird changes added to the upstream archiver library which break the build. Since this is only used in the build process, I'm in no hurry to update it. --- magefile.go | 21 ++------------------- 1 file changed, 2 insertions(+), 19 deletions(-) diff --git a/magefile.go b/magefile.go index 2eadaa4..793b86b 100644 --- a/magefile.go +++ b/magefile.go @@ -587,30 +587,13 @@ func Release() error { if platform.OS == "windows" { // build a zip binary as well - - // creates a Zip configuration - z := archiver.Zip{ - CompressionLevel: 3, - MkdirAll: true, - SelectiveCompression: true, - ContinueOnError: false, - OverwriteExisting: false, - ImplicitTopLevelFolder: false, - } - - err := z.Archive([]string{platform.ArchiveDir()}, fmt.Sprintf("%s.zip", platform.ReleaseBase())) + err := archiver.Zip.Make(fmt.Sprintf("%s.zip", platform.ReleaseBase()), []string{platform.ArchiveDir()}) if err != nil { return err } } // build tar gz - - //creates TarGz configuration - t := archiver.TarGz{ - CompressionLevel: 3, - } - - err := t.Archive([]string{platform.ArchiveDir()}, fmt.Sprintf("%s.tar.gz", platform.ReleaseBase())) + err := archiver.TarGz.Make(fmt.Sprintf("%s.tar.gz", platform.ReleaseBase()), []string{platform.ArchiveDir()}) if err != nil { return err }