forked from TrueCloudLab/frostfs-node
[#1587] Do not print build time in version
This makes our build more reproducible. Also print `Component` and `GoVersion`. Signed-off-by: Evgenii Stratonikov <evgeniy@nspcc.ru>
This commit is contained in:
parent
b3272e7cf1
commit
5569ff82ef
7 changed files with 21 additions and 37 deletions
|
@ -1,7 +1,6 @@
|
|||
package modules
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"os"
|
||||
|
||||
"github.com/nspcc-dev/neofs-node/cmd/neofs-adm/internal/modules/config"
|
||||
|
@ -53,11 +52,7 @@ func Execute() error {
|
|||
func entryPoint(cmd *cobra.Command, args []string) error {
|
||||
printVersion, err := cmd.Flags().GetBool("version")
|
||||
if err == nil && printVersion {
|
||||
fmt.Printf("Version: %s \nBuild: %s \nDebug: %s\n",
|
||||
misc.Version,
|
||||
misc.Build,
|
||||
misc.Debug,
|
||||
)
|
||||
cmd.Print(misc.BuildInfo("NeoFS Adm"))
|
||||
return nil
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue