1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-09-16 09:26:52 +02:00

wip more changes

This commit is contained in:
Carlos Alexandro Becker
2017-06-27 22:45:59 -03:00
parent a8f1645ea9
commit 05744bb0c7
3 changed files with 4 additions and 5 deletions

View File

@@ -3,7 +3,7 @@ description: &description Deliver Go binaries as fast and easily as possible
builds:
-
env:
- CGO_ENABLED=0
- CGO_ENABLED=0
goos:
- linux
- darwin

View File

@@ -42,7 +42,7 @@ func runPipeOnBuild(ctx *context.Context, build config.Build) error {
sem := make(chan bool, 4)
var g errgroup.Group
for _, target := range buildTargets(build) {
name, err := nameFor(ctx, build, target)
name, err := nameFor(ctx, target)
if err != nil {
return err
}

View File

@@ -4,7 +4,6 @@ import (
"bytes"
"text/template"
"github.com/goreleaser/goreleaser/config"
"github.com/goreleaser/goreleaser/context"
)
@@ -17,14 +16,14 @@ type nameData struct {
Binary string
}
func nameFor(ctx *context.Context, build config.Build, target buildTarget) (string, error) {
func nameFor(ctx *context.Context, target buildTarget) (string, error) {
var data = nameData{
Os: replace(ctx.Config.Archive.Replacements, target.goos),
Arch: replace(ctx.Config.Archive.Replacements, target.goarch),
Arm: replace(ctx.Config.Archive.Replacements, target.goarm),
Version: ctx.Version,
Tag: ctx.Git.CurrentTag,
Binary: build.Binary,
Binary: ctx.Config.Name,
}
var out bytes.Buffer