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:
parent
8da2def47a
commit
34cd3c4196
2
main.go
2
main.go
@ -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
|
||||
)
|
||||
|
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user