Allow configuring the update notifier from the outside
To test the update notifier:
rm -f bin/gh; GH_VERSION=v0.2.3 LDFLAGS='-X main.updaterEnabled=github/homebrew-gh' make
This commit is contained in:
parent
67f0cf3ce3
commit
ba0a441e23
3 changed files with 6 additions and 5 deletions
|
|
@ -9,7 +9,7 @@ builds:
|
|||
- -s -w -X github.com/github/gh-cli/command.Version={{.Version}} -X github.com/github/gh-cli/command.BuildDate={{.Date}}
|
||||
- -X github.com/github/gh-cli/context.oauthClientID={{.Env.GH_OAUTH_CLIENT_ID}}
|
||||
- -X github.com/github/gh-cli/context.oauthClientSecret={{.Env.GH_OAUTH_CLIENT_SECRET}}
|
||||
- -X github.com/github/gh-cli.updaterEnabled=yes
|
||||
- -X main.updaterEnabled=github/homebrew-gh
|
||||
goos:
|
||||
- linux
|
||||
- darwin
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue