mirror of
https://github.com/goreleaser/goreleaser.git
synced 2025-02-03 13:11:48 +02:00
fixed ldflags time format
This commit is contained in:
parent
8da2def47a
commit
34cd3c4196
2
main.go
2
main.go
@ -69,11 +69,11 @@ func main() {
|
|||||||
func pipes(buildOnly bool) []pipeline.Pipe {
|
func pipes(buildOnly bool) []pipeline.Pipe {
|
||||||
var pipes = []pipeline.Pipe{
|
var pipes = []pipeline.Pipe{
|
||||||
defaults.Pipe{}, // load default configs
|
defaults.Pipe{}, // load default configs
|
||||||
|
git.Pipe{}, // get current tag info
|
||||||
}
|
}
|
||||||
if !buildOnly {
|
if !buildOnly {
|
||||||
pipes = append(
|
pipes = append(
|
||||||
pipes,
|
pipes,
|
||||||
git.Pipe{}, // get current tag info
|
|
||||||
env.Pipe{}, // load and validate environment variables
|
env.Pipe{}, // load and validate environment variables
|
||||||
source.Pipe{}, // validate current git state
|
source.Pipe{}, // validate current git state
|
||||||
)
|
)
|
||||||
|
@ -18,7 +18,7 @@ func ldflags(ctx *context.Context) (string, error) {
|
|||||||
var data = ldflagsData{
|
var data = ldflagsData{
|
||||||
Commit: ctx.Git.Commit,
|
Commit: ctx.Git.Commit,
|
||||||
Version: ctx.Git.CurrentTag,
|
Version: ctx.Git.CurrentTag,
|
||||||
Date: time.Now().Format("2006-01-02_15:04:05"),
|
Date: time.Now().UTC().Format(time.RFC3339),
|
||||||
}
|
}
|
||||||
var out bytes.Buffer
|
var out bytes.Buffer
|
||||||
t, err := template.New("ldflags").Parse(ctx.Config.Build.Ldflags)
|
t, err := template.New("ldflags").Parse(ctx.Config.Build.Ldflags)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user