From 83c2c2468304fc2c7d04baebd2607d172855b0e2 Mon Sep 17 00:00:00 2001 From: aichy126 <16996097+aichy126@users.noreply.github.com> Date: Tue, 11 Apr 2023 16:17:35 +0800 Subject: [PATCH] update cmd Version --- Dockerfile | 1 + cmd/main.go | 2 ++ 2 files changed, 3 insertions(+) diff --git a/Dockerfile b/Dockerfile index 2610e040..641a0c1a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -12,6 +12,7 @@ LABEL maintainer="aichy@sf.com" ARG GOPROXY ENV GOPROXY ${GOPROXY:-direct} +# ENV GOPROXY=https://goproxy.io,direct ENV GOPATH /go ENV GOROOT /usr/local/go diff --git a/cmd/main.go b/cmd/main.go index 9f1f2cc8..192832ad 100644 --- a/cmd/main.go +++ b/cmd/main.go @@ -1,6 +1,7 @@ package answercmd import ( + "fmt" "os" "time" @@ -56,6 +57,7 @@ func runApp() { constant.Version = Version constant.Revision = Revision schema.AppStartTime = time.Now() + fmt.Println("answer Version:", constant.Version, " Revision:", constant.Revision) defer cleanup() if err := app.Run(); err != nil {