Silence “Crowdsec is not the latest version” messages.
authorCyril Brulebois <cyril@debamax.com>
Wed, 1 Mar 2023 22:58:00 +0000 (23:58 +0100)
committerCyril Brulebois <cyril@debamax.com>
Thu, 2 Mar 2023 05:07:10 +0000 (05:07 +0000)
We're shipping crowdsec in a stable Debian release, which isn't quite
compatible with a “latest and greatest” approach. :)

Upstream maintains a hub branch for the version we ship in stable anyway.

Gbp-Pq: Name 0015-silence-not-latest-version.patch

pkg/cwhub/helpers.go

index 31f60086251d389c65feb3b6608d86b1c280293f..a5b5955af513ee8c4ce32be63605d7f73f6d04a5 100644 (file)
@@ -35,11 +35,6 @@ func chooseHubBranch() (string, error) {
                return "master", nil
        }
 
-       log.Warnf("Crowdsec is not the latest version. "+
-               "Current version is '%s' and the latest stable version is '%s'. Please update it!",
-               csVersion, latest)
-       log.Warnf("As a result, you will not be able to use parsers/scenarios/collections "+
-               "added to Crowdsec Hub after CrowdSec %s", latest)
        return csVersion, nil
 }