1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-01-06 03:13:48 +02:00
This commit is contained in:
Carlos Alexandro Becker 2016-12-30 09:33:24 -02:00
parent 1bb471d8ec
commit 2902406efa
No known key found for this signature in database
GPG Key ID: E61E2F7DC14AB940

View File

@ -3,7 +3,6 @@ package compress
import (
"archive/tar"
"compress/gzip"
"fmt"
"io"
"log"
"os"
@ -19,7 +18,6 @@ func (Pipe) Name() string {
}
func (Pipe) Work(config config.ProjectConfig) error {
log.Println("Creating archives...")
// TODO use a errgroup here?
for _, system := range config.Build.Oses {
for _, arch := range config.Build.Arches {
@ -33,7 +31,7 @@ func (Pipe) Work(config config.ProjectConfig) error {
func create(system, arch string, config config.ProjectConfig) error {
file, err := os.Create("dist/" + nameFor(system, arch, config.BinaryName) + ".tar.gz")
fmt.Println("Creating", file.Name(), "...")
log.Println("Creating", file.Name(), "...")
if err != nil {
return err
}