1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-01-24 04:16:27 +02:00

fixed ldflags time format

This commit is contained in:
Carlos Alexandro Becker 2017-04-09 10:22:09 -03:00
parent 8da2def47a
commit 34cd3c4196
No known key found for this signature in database
GPG Key ID: E61E2F7DC14AB940
2 changed files with 2 additions and 2 deletions

View File

@ -69,11 +69,11 @@ func main() {
func pipes(buildOnly bool) []pipeline.Pipe {
var pipes = []pipeline.Pipe{
defaults.Pipe{}, // load default configs
git.Pipe{}, // get current tag info
}
if !buildOnly {
pipes = append(
pipes,
git.Pipe{}, // get current tag info
env.Pipe{}, // load and validate environment variables
source.Pipe{}, // validate current git state
)

View File

@ -18,7 +18,7 @@ func ldflags(ctx *context.Context) (string, error) {
var data = ldflagsData{
Commit: ctx.Git.Commit,
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
t, err := template.New("ldflags").Parse(ctx.Config.Build.Ldflags)