#1151520 crowdsec: FTBFS: src/github.com/crowdsecurity/crowdsec/pkg/csplugin/hclog_adapter.go:31:9: cannot use &HCLogAdapter{…} (value of type *HCLogAdapter) as hclog.Logger value in return statement: *HCLogAdapter does not implement hclog.Logger (missing method GetLevel)

#1151520#5
Date:
2026-10-21 11:25:57 UTC
From:
To:
Dear maintainer:

During a rebuild of all packages in unstable, this package failed to build.

Below you will find the last part of the build log (probably the most
relevant part, but not necessarily). If required, the full build log
is available here:

https://people.debian.org/~sanvila/build-logs/202610/

About the archive rebuild: The build was made on virtual machines from AWS,
using sbuild and a reduced chroot with only build-essential packages.

If you cannot reproduce the bug please contact me privately, as I
am willing to provide ssh access to a virtual machine where the bug is
fully reproducible.

If this is really a bug in one of the build-depends, please use
reassign and add an affects on src:crowdsec, so that this is still
visible in the BTS web page for this package.

Thanks.
--------------------------------------------------------------------------------
[...]
github.com/blackfireio/osinfo
github.com/vmihailenco/tagparser/internal/parser
github.com/crowdsecurity/crowdsec/pkg/csplugin
github.com/vmihailenco/tagparser
# github.com/crowdsecurity/crowdsec/pkg/csplugin
src/github.com/crowdsecurity/crowdsec/pkg/csplugin/hclog_adapter.go:31:9: cannot use &HCLogAdapter{…} (value of type *HCLogAdapter) as hclog.Logger value in return statement: *HCLogAdapter does not implement hclog.Logger (missing method GetLevel)
src/github.com/crowdsecurity/crowdsec/pkg/csplugin/hclog_adapter.go:107:9: cannot use &h (value of type *HCLogAdapter) as hclog.Logger value in return statement: *HCLogAdapter does not implement hclog.Logger (missing method GetLevel)
src/github.com/crowdsecurity/crowdsec/pkg/csplugin/hclog_adapter.go:119:9: cannot use &h (value of type *HCLogAdapter) as hclog.Logger value in return statement: *HCLogAdapter does not implement hclog.Logger (missing method GetLevel)
github.com/dghubble/sling
github.com/vmihailenco/msgpack
github.com/crowdsecurity/crowdsec/pkg/metabase
github.com/crowdsecurity/machineid
github.com/spf13/pflag
github.com/r3labs/diff/v3
github.com/crowdsecurity/crowdsec/pkg/hubtest
github.com/spf13/cobra
github.com/jszwec/csvutil
github.com/ivanpirog/coloredcobra
github.com/pbnjay/memory
github.com/matttproud/golang_protobuf_extensions/pbutil
github.com/prometheus/prom2json
github.com/russross/blackfriday/v2
github.com/texttheater/golang-levenshtein/levenshtein
github.com/pmezard/go-difflib/difflib
gopkg.in/yaml.v3
github.com/cpuguy83/go-md2man/v2/md2man
github.com/spf13/cobra/doc
internal/gate
internal/nettest
net/http/internal/testcert
net/http/httptest
github.com/crowdsecurity/crowdsec/pkg/database/ent/enttest
github.com/stretchr/testify/assert/yaml
github.com/stretchr/testify/assert
github.com/crowdsecurity/crowdsec/pkg/database/ent/hook
github.com/crowdsecurity/crowdsec/plugins/notifications/dummy
github.com/stretchr/testify/require
github.com/crowdsecurity/crowdsec/pkg/cstest
github.com/toorop/go-dkim
github.com/xhit/go-simple-mail
github.com/crowdsecurity/crowdsec/plugins/notifications/email
github.com/crowdsecurity/crowdsec/plugins/notifications/http
github.com/gorilla/websocket
github.com/slack-go/slack/internal/backoff
github.com/slack-go/slack/internal/timex
github.com/slack-go/slack/slackutilsx
github.com/slack-go/slack
github.com/crowdsecurity/crowdsec/plugins/notifications/splunk
github.com/crowdsecurity/crowdsec/plugins/notifications/slack
dh_auto_build: error: cd _build && go install -trimpath -v - [too-long-redacted] ons/splunk returned exit code 1
make[1]: *** [debian/rules:41: override_dh_auto_build] Error 25
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:38: binary] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess failed with exit status 2
--------------------------------------------------------------------------------