cli/internal
Mislav Marohnić 82d19b73d6 Update notifier: avoid false positives when gh is built from source
When gh was built from source, the version number will look something
like this since it's taken from `git describe`:

    v1.4.0-34-g{SHA}

When compared as semver against `v1.4.0`, the latter version is falsely
reported as newer. This is because the output of `git describe` wasn't
meant to be interpreted as semver.

The solution is to translate the `git describe` string to faux-semver so
it can be safely compared with the version reported from the server.

Fixes this case:

    A new release of gh is available: v1.4.0-41-g2f9e4cb1 → v1.4.0
    https://github.com/cli/cli/releases/tag/v1.4.0
2021-01-20 16:13:50 +01:00
..
authflow Enable debugging HTTP traffic during auth login/refresh 2021-01-05 16:24:47 +01:00
build Move build to internal 2020-10-21 13:31:32 +02:00
config Use testify assertions for error matching 2021-01-19 13:59:37 +01:00
docs spelling: deprecated 2020-11-21 21:43:51 -05:00
ghinstance Use testify assertions for error matching 2021-01-19 13:59:37 +01:00
ghrepo Allow explicitly specifying the hostname for gh operations 2020-08-12 16:16:34 +02:00
run spelling: unmatched 2020-11-21 21:43:51 -05:00
update Update notifier: avoid false positives when gh is built from source 2021-01-20 16:13:50 +01:00