--- Makefile.orig 2022-02-10 09:11:04 UTC +++ Makefile @@ -58,8 +58,8 @@ LD_OPTS_VARS= \ -X github.com/crowdsecurity/crowdsec/pkg/csconfig.defaultConfigDir=$(DEFAULT_CONFIGDIR) \ -X github.com/crowdsecurity/crowdsec/pkg/csconfig.defaultDataDir=$(DEFAULT_DATADIR) -export LD_OPTS=-ldflags "-s -w $(LD_OPTS_VARS)" -export LD_OPTS_STATIC=-ldflags "-s -w $(LD_OPTS_VARS) -extldflags '-static'" +export LD_OPTS=-mod vendor -modcacherw -ldflags "-s -w $(LD_OPTS_VARS)" +export LD_OPTS_STATIC=-mod vendor -modcacherw -ldflags "-s -w $(LD_OPTS_VARS) -extldflags '-static'" RELDIR = crowdsec-$(BUILD_VERSION)