rhysd / go-github-selfupdate

Binary self-update mechanism for Go commands using GitHub
https://godoc.org/github.com/rhysd/go-github-selfupdate/selfupdate
MIT License
597 stars 76 forks source link

Add NoGitUpdater #47

Open stuartleeks opened 2 years ago

stuartleeks commented 2 years ago

The DefaultUpdater uses the gitconfig pkg to query for the github.token setting in git. It does this by launching git, and when used in a Windows GUI app, this causes console windows to appear.

This PR adds a NoGitUpdater which is the same as DefaultUpdater but skips the gitconfig check