[Bug 284726] security/crowdsec tries to reach an update URL which doesn't exist

From: <bugzilla-noreply_at_freebsd.org>
Date: Tue, 11 Feb 2025 08:09:21 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=284726

            Bug ID: 284726
           Summary: security/crowdsec tries to reach an update URL which
                    doesn't exist
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: ports-bugs@FreeBSD.org
          Reporter: netchild@FreeBSD.org
                CC: marco@crowdsec.net
             Flags: maintainer-feedback?(marco@crowdsec.net)
                CC: marco@crowdsec.net

The upgrade-hub command in cron fails:

level=fatal msg="failed to update hub: document not found at
https://cdn-hub.crowdsec.net/crowdsecurity/v1.6.4_1/.index.json"

It uses the FreeBSD version number inclduing the PORTREVISION for this URL,
which doesn't exist. Using c1.6.4 without _1 in the browser shows data.

At first look I would assume the following part in the port Makefile
-X
github.com/crowdsecurity/go-cs-lib/version.Version=${DISTVERSIONPREFIX}${PKGVERSION}

should be
-X
github.com/crowdsecurity/go-cs-lib/version.Version=${DISTVERSIONPREFIX}${DISTVERSION}

-- 
You are receiving this mail because:
You are the assignee for the bug.