mirror of
https://github.com/goreleaser/goreleaser.git
synced 2025-02-07 13:31:37 +02:00
cleanup
This commit is contained in:
parent
e3220b8257
commit
dd786912f9
@ -35,14 +35,13 @@ func (Pipe) Run(config config.ProjectConfig) error {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func build(system, arch string, config config.ProjectConfig) error {
|
func build(system, arch string, config config.ProjectConfig) error {
|
||||||
ldflags := config.Build.Ldflags + " -X main.version=" + config.Git.CurrentTag
|
|
||||||
name, err := config.ArchiveName(system, arch)
|
name, err := config.ArchiveName(system, arch)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
ldflags := config.Build.Ldflags + " -X main.version=" + config.Git.CurrentTag
|
||||||
output := "dist/" + name + "/" + config.BinaryName
|
output := "dist/" + name + "/" + config.BinaryName
|
||||||
log.Println("Building", output, "...")
|
log.Println("Building", output, "...")
|
||||||
log.Println("'" + ldflags + "'")
|
|
||||||
cmd := exec.Command(
|
cmd := exec.Command(
|
||||||
"go",
|
"go",
|
||||||
"build",
|
"build",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user