We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d509b10 commit dc9450dCopy full SHA for dc9450d
cmd/update.go
@@ -59,7 +59,7 @@ var (
59
githubAPIBase = "https://api.github.com"
60
download = doDownload
61
osExecutable = os.Executable
62
- disableUpdateSubcommand = false
+ disableUpdateSubcommand = "false"
63
)
64
65
// semverDiffers reports whether versions a and b differ (ignoring leading 'v').
@@ -506,7 +506,8 @@ then downloads and replaces the current binary.`,
506
}
507
508
func init() {
509
- if disableUpdateSubcommand {
+ // I have to use a string here because of the limitations of the -X flag in Go build.
510
+ if disableUpdateSubcommand == "true" {
511
return
512
513
updateCmd.Flags().AddFlagSet(progress.AnswerYesFlag)
0 commit comments