From e7a4e5531f24e283a00326e318b3de0eaf0242f2 Mon Sep 17 00:00:00 2001 From: George Aristy Date: Sun, 3 Mar 2019 10:01:43 -0500 Subject: [PATCH] (#36) Fix release build --- README.md | 2 +- cmd/go-gitlint/main.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 1c4d2f9..3eaf554 100644 --- a/README.md +++ b/README.md @@ -21,7 +21,7 @@ Flags: --help Show context-sensitive help (also try --help-long and --help-man). --path="." Path to the git repo (default: "."). --subject-regex=".*" Commit subject line must conform to this regular expression (default: ".*"). - --subject-len=4294967295 Commit subject line cannot exceed this length (default: math.MaxUint32). + --subject-len=2147483646 Commit subject line cannot exceed this length (default: math.MaxInt32 - 1). --body-regex=".*" Commit message body must conform to this regular expression (default: ".*"). --since="1970-01-01" A date in "yyyy-MM-dd" format starting from which commits will be analyzed (default: "1970-01-01") ``` diff --git a/cmd/go-gitlint/main.go b/cmd/go-gitlint/main.go index a90012b..2037505 100644 --- a/cmd/go-gitlint/main.go +++ b/cmd/go-gitlint/main.go @@ -32,7 +32,7 @@ import ( var ( path = kingpin.Flag("path", `Path to the git repo (default: ".").`).Default(".").String() //nolint[gochecknoglobals] subjectRegex = kingpin.Flag("subject-regex", `Commit subject line must conform to this regular expression (default: ".*").`).Default(".*").String() //nolint[gochecknoglobals] - subjectLength = kingpin.Flag("subject-len", "Commit subject line cannot exceed this length (default: math.MaxUint32).").Default(strconv.Itoa(math.MaxUint32)).Int() //nolint[gochecknoglobals] + subjectLength = kingpin.Flag("subject-len", "Commit subject line cannot exceed this length (default: math.MaxInt32 - 1).").Default(strconv.Itoa(math.MaxInt32 - 1)).Int() //nolint[gochecknoglobals] bodyRegex = kingpin.Flag("body-regex", `Commit message body must conform to this regular expression (default: ".*").`).Default(".*").String() //nolint[gochecknoglobals] since = kingpin.Flag("since", `A date in "yyyy-MM-dd" format starting from which commits will be analyzed (default: "1970-01-01")`).Default("1970-01-01").String() //nolint[gochecknoglobals] )