remove "compiled on" string

It makes compiling more complicated and unreproducible binaries.
This commit is contained in:
Michele Guerini Rocco 2024-07-25 16:42:05 +02:00
parent d6d0a22ece
commit 014a5390ed
Signed by: rnhmjoj
GPG Key ID: BFBAF4C975F76450
2 changed files with 0 additions and 6 deletions

View File

@ -36,8 +36,6 @@ type opFlags struct {
Profile string
}
var compiledOn string
func main() {
loggerLevel := zap.NewAtomicLevel()
// Logging levels: ("debug", "info", "warn", "error", "dpanic", "panic", and "fatal").
@ -59,7 +57,6 @@ func main() {
zap.L().Info("magneticod v0.12.0 has been started.")
zap.L().Info("Copyright (C) 2017-2020 Mert Bora ALPER <bora@boramalper.org>.")
zap.L().Info("Dedicated to Cemile Binay, in whose hands I thrived.")
zap.S().Infof("Compiled on %s", compiledOn)
switch opFlags.Verbosity {
case 0:

View File

@ -30,8 +30,6 @@ import (
"github.com/boramalper/magnetico/pkg/persistence"
)
var compiledOn string
// Set a Decoder instance as a package global, because it caches
// meta-data about structs, and an instance can be shared safely.
var decoder = schema.NewDecoder()
@ -64,7 +62,6 @@ func main() {
zap.L().Info("magneticow v0.12.0 has been started.")
zap.L().Info("Copyright (C) 2017-2020 Mert Bora ALPER <bora@boramalper.org>.")
zap.L().Info("Dedicated to Cemile Binay, in whose hands I thrived.")
zap.S().Infof("Compiled on %s", compiledOn)
if err := parseFlags(); err != nil {
zap.S().Errorf("error while parsing flags: %s", err.Error())