You've already forked goreleaser
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:
@@ -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
|
||||
|
@@ -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
|
||||
}
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user