Bug 271241 - security/crowdsec-blocklist-mirror: update to 0.0.2
Summary: security/crowdsec-blocklist-mirror: update to 0.0.2
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Many People
Assignee: Robert Clausecker
URL: https://github.com/crowdsecurity/cs-b...
Keywords:
Depends on:
Blocks:
 
Reported: 2023-05-04 14:42 UTC by marco
Modified: 2023-05-11 23:28 UTC (History)
2 users (show)

See Also:


Attachments
patch for crowdsec-blocklist-mirror 0.0.2 (1.95 KB, patch)
2023-05-04 14:42 UTC, marco
no flags Details | Diff
patch for crowdsec-blocklist-mirror 0.0.2, without go:1.20 (1.94 KB, patch)
2023-05-09 21:31 UTC, marco
marco: maintainer-approval+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description marco 2023-05-04 14:42:00 UTC
Created attachment 241971 [details]
patch for crowdsec-blocklist-mirror 0.0.2

Update to new upstream version
Comment 1 Robert Clausecker freebsd_committer freebsd_triage 2023-05-04 16:08:58 UTC
Is it still required to pin a particular Go toolchain version?  Unless there's a reason why only a specific Go toolchain can be used, Go ports should not restrict themselves like this.
Comment 2 marco 2023-05-08 21:28:37 UTC
(In reply to Robert Clausecker from comment #1)

Thanks a lot for the review.

We have five bouncers written in Go which import code from the main crowdsec repository, where we use features introduced in Go 1.20

Therefore, it made sense for me to transfer the dependency to the bouncers too.

The Makefile will honor the variable BUILD_REQUIRE_GO_MINOR=20, it can be overridden if required but we have not tested the previous versions.
Comment 3 Robert Clausecker freebsd_committer freebsd_triage 2023-05-08 21:36:34 UTC
(In reply to marco from comment #2)

Specifying a Go version is to ensure no newer Go toolchain will be selected.  By default, the newest non-devel Go toolchain in the tree is used.  I recommend removing the 1.20 unless you know that the code won't build with newer Go toolchains.

I.e. you won't get a 1.19 toolchain if you don't specify which toolchain to use.

If you prefer to leave it as is, I can however go ahead and commit your patch as is.

For future updates, please set maintainer-approval to "+" to indicate that you approve of the patch.  This speeds up processing.
Comment 4 marco 2023-05-09 21:31:53 UTC
Created attachment 242084 [details]
patch for crowdsec-blocklist-mirror 0.0.2, without go:1.20
Comment 5 marco 2023-05-09 21:33:10 UTC
(In reply to Robert Clausecker from comment #3)

Thanks, I understand better now!
I updated the patch.
Comment 6 commit-hook freebsd_committer freebsd_triage 2023-05-11 23:27:19 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=fce7ec1e71982958b8108489256b94658f917647

commit fce7ec1e71982958b8108489256b94658f917647
Author:     Marco Mariani <marco@crowdsec.net>
AuthorDate: 2023-05-04 14:33:19 +0000
Commit:     Robert Clausecker <fuz@FreeBSD.org>
CommitDate: 2023-05-11 23:23:23 +0000

    security/crowdsec-blocklist-mirror: update to 0.0.2

    Changelog: https://github.com/crowdsecurity/cs-blocklist-mirror/releases/tag/v0.0.2

    PR:             271241

 security/crowdsec-blocklist-mirror/Makefile | 7 +++----
 security/crowdsec-blocklist-mirror/distinfo | 6 +++---
 2 files changed, 6 insertions(+), 7 deletions(-)
Comment 7 Robert Clausecker freebsd_committer freebsd_triage 2023-05-11 23:28:54 UTC
Thank you for your contribution.