From 34c2400e813a3b9dfec5073d5688776612d4edcd Mon Sep 17 00:00:00 2001 From: jackgopack4 Date: Wed, 18 Sep 2024 10:55:56 -0400 Subject: [PATCH] remove date code but leave versioning code --- cmd/builder/internal/command.go | 2 +- cmd/builder/internal/version.go | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/cmd/builder/internal/command.go b/cmd/builder/internal/command.go index 821f5b48397..3af77178727 100644 --- a/cmd/builder/internal/command.go +++ b/cmd/builder/internal/command.go @@ -123,7 +123,7 @@ configuration is provided, ocb will generate a default Collector. func initConfig(flags *flag.FlagSet) error { cfg.Logger.Info("OpenTelemetry Collector Builder", - zap.String("version", version), zap.String("date", date)) + zap.String("version", version)) var provider koanf.Provider diff --git a/cmd/builder/internal/version.go b/cmd/builder/internal/version.go index 9ffbbf30955..8424e08a493 100644 --- a/cmd/builder/internal/version.go +++ b/cmd/builder/internal/version.go @@ -12,7 +12,6 @@ import ( var ( version = "" - date = "unknown" ) // binVersion returns the version of the binary.