Created attachment 242673 [details] seaweedfs.patch Update to 3.52 Changelogs: * https://github.com/seaweedfs/seaweedfs/releases/tag/3.48 * https://github.com/seaweedfs/seaweedfs/releases/tag/3.49 * https://github.com/seaweedfs/seaweedfs/releases/tag/3.50 * https://github.com/seaweedfs/seaweedfs/releases/tag/3.51 * https://github.com/seaweedfs/seaweedfs/releases/tag/3.52
The way you fetch the upstream go.mod file is weird. Check if you can do it the conventional way in a future update.
(In reply to Robert Clausecker from comment #1) Do you mean a ":mod" suffix? I'll remove in a future update. But if do you mean MASTER_SITES and DISTFILES vars broadly... Unfortunately, seaweedfs project's tags haven't a "v" prefix, so GO_MODULE framework (and proxy.golang.org) doesn't support such tags.
What you can do is download the main project sources normally (with USE_GITHUB) and then build from that, having the go.mk tooling just download the dependencies using module mode. I'm a bit fuzzy on the details though; dmgk (CC'ed) might be able to point you at a better example. Another solution is to use a pseudo version for the Go module version. For example, you can type go list -m -f '{{.Version}}' github.com/seaweedfs/seaweedfs@3.52 to get the pseudo version Go uses internally to represent the malformed tag 3.52. Here I get v0.0.0-20230605053426-fb4b61036cd6 You can use this version to fetch the correct Go module as such: GO_MODULE= github.com/seaweedfs/seaweedfs@v0.0.0-20230605053426-fb4b61036cd6 This should just work, but I didn't test it. I'm using a similar approach for devel/go-perf which doesn't have any tagged versions at all.
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=53f2fec64b4116dd970fc18aac7d4a34888798f0 commit 53f2fec64b4116dd970fc18aac7d4a34888798f0 Author: Boris Korzun <drtr0jan@yandex.ru> AuthorDate: 2023-06-07 22:24:46 +0000 Commit: Robert Clausecker <fuz@FreeBSD.org> CommitDate: 2023-06-08 10:51:07 +0000 net/seaweedfs: update to 3.52 Changelogs: * https://github.com/seaweedfs/seaweedfs/releases/tag/3.48 * https://github.com/seaweedfs/seaweedfs/releases/tag/3.49 * https://github.com/seaweedfs/seaweedfs/releases/tag/3.50 * https://github.com/seaweedfs/seaweedfs/releases/tag/3.51 * https://github.com/seaweedfs/seaweedfs/releases/tag/3.52 PR: 271894 net/seaweedfs/Makefile | 2 +- net/seaweedfs/distinfo | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-)
Thank you for your submission.
(In reply to Robert Clausecker from comment #3) Fixed in bug #275609. Thx.