From f5e438602fa46c2ebfbec81556fedc9c736e7405 Mon Sep 17 00:00:00 2001 From: Justin Hawkins Date: Sun, 16 Jan 2022 23:02:29 +1030 Subject: [PATCH] OK leading v is best practice --- build_release.pl | 2 +- main.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/build_release.pl b/build_release.pl index 51cc0a9..7f0ce25 100755 --- a/build_release.pl +++ b/build_release.pl @@ -8,7 +8,7 @@ open my $fh, "<", "main.go" || die $!; my $version; while (<$fh>) { # CurrentVersion: "v0.04" - $version = $1 if /CurrentVersion\s*=\s*"([\d\.]+)"/; + $version = $1 if /CurrentVersion\s*=\s*"(v[\d\.]+)"/; } close $fh; diff --git a/main.go b/main.go index 28272c1..855817f 100644 --- a/main.go +++ b/main.go @@ -11,7 +11,7 @@ import ( "github.com/spf13/viper" ) -var CurrentVersion = "0.0.1" +var CurrentVersion = "v0.0.1" func main() { isServer := flag.Bool("server", false, "Run netgiv in server mode")