Skip to content

Commit

Permalink
Fix the buildTime variable by making it a fixed string
Browse files Browse the repository at this point in the history
See eg. golang/go#64246 for more explanations.

Signed-off-by: Jo Vandeginste <Jo.Vandeginste@kuleuven.be>
  • Loading branch information
jovandeginste committed Mar 26, 2024
1 parent 065e723 commit 3807082
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import (
"fmt"
"log"
"os"
"time"

"github.com/jovandeginste/payme/payment"
"github.com/spf13/cobra"
Expand All @@ -20,7 +19,7 @@ var (
// gitRefType = "local"
gitRefName = "local"
gitCommit = "local"
buildTime = time.Now().Format(time.RFC3339)
buildTime = "manually"
)

type qrParams struct {
Expand All @@ -37,7 +36,7 @@ func main() {

cmdRoot := &cobra.Command{
Use: "payme",
Version: fmt.Sprintf("%s (%s), built at %s\n", gitRefName, gitCommit, buildTime),
Version: fmt.Sprintf("%s (%s), built %s\n", gitRefName, gitCommit, buildTime),
Short: "Generate SEPA payment QR code",
Args: cobra.NoArgs,
Run: func(_ *cobra.Command, _ []string) {
Expand Down

0 comments on commit 3807082

Please sign in to comment.