Bug 278462 - www/mattermost-server fetch fails due to size mismatch
Summary: www/mattermost-server fetch fails due to size mismatch
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: Muhammad Moinur Rahman
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-04-19 14:13 UTC by wolfgang
Modified: 2024-06-30 19:13 UTC (History)
1 user (show)

See Also:
bugzilla: maintainer-feedback? (bofh)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description wolfgang 2024-04-19 14:13:15 UTC
Trying to build www/mattermost-server 8.1.11 fails in the "fetch" phase due to unexpected size 12089 of go.mod instead of the expected 12109
This might be related to the replace-hack mentioned in PR 276638
Comment 1 Muhammad Moinur Rahman freebsd_committer freebsd_triage 2024-04-23 09:25:17 UTC
decke@ Can you have a quick look at this?
Comment 2 Bernhard Froehlich freebsd_committer freebsd_triage 2024-04-23 11:22:50 UTC
Yes, I'm checking it.
Comment 3 Bernhard Froehlich freebsd_committer freebsd_triage 2024-04-23 12:11:40 UTC
It looks a lot like a commit to go.mk has broken our hack. I do not have a quick fix available at the moment.
Comment 4 Bernhard Froehlich freebsd_committer freebsd_triage 2024-04-23 17:35:34 UTC
I have a working fix for it now but had to remove the hack and avoid GO_MODULE. I had to roll my own distfile instead including /vendor.

The good thing is that this likely also works fine for newer mattermost releases. The old hack did not work for newer mattermost 9.5 releases anyway because they use more keywords in go.mod (eg. exclude) which our framework does not support.
Comment 5 commit-hook freebsd_committer freebsd_triage 2024-04-23 18:28:16 UTC
A commit in branch main references this bug:

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

commit 6b177df5fcb8048b66d24a1cab847338e6aa34ac
Author:     Bernhard Froehlich <decke@FreeBSD.org>
AuthorDate: 2024-04-23 18:14:51 +0000
Commit:     Bernhard Froehlich <decke@FreeBSD.org>
CommitDate: 2024-04-23 18:27:49 +0000

    www/mattermost-server: Update to 8.1.12

    The old hack to overwrite go.mod and replace some unsupported keywords
    did not work anymore so we roll our own distfile now including
    vendorized dependencies.

    PR:             278462
    Approved by:    maintainer (implicit)

 www/mattermost-server/Makefile | 15 +++------------
 www/mattermost-server/distinfo |  8 +++-----
 2 files changed, 6 insertions(+), 17 deletions(-)
Comment 6 commit-hook freebsd_committer freebsd_triage 2024-04-23 18:28:17 UTC
A commit in branch main references this bug:

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

commit 7680ac5879635507b9bbf56d04d6d9ded39cb5e5
Author:     Bernhard Froehlich <decke@FreeBSD.org>
AuthorDate: 2024-04-23 18:25:37 +0000
Commit:     Bernhard Froehlich <decke@FreeBSD.org>
CommitDate: 2024-04-23 18:27:49 +0000

    www/mattermost-webapp: Update to 8.1.12

    PR:             278462
    Approved by:    maintainer (implicit)

 www/mattermost-webapp/Makefile  |  2 +-
 www/mattermost-webapp/distinfo  |  6 +++---
 www/mattermost-webapp/pkg-plist | 12 ++++++------
 3 files changed, 10 insertions(+), 10 deletions(-)
Comment 7 Bernhard Froehlich freebsd_committer freebsd_triage 2024-04-23 18:30:31 UTC
This should be fixed now.
Comment 8 commit-hook freebsd_committer freebsd_triage 2024-06-24 15:21:58 UTC
A commit in branch 2024Q2 references this bug:

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

commit 385101b201d2d65d7284f521b7a6533f856e17e1
Author:     Bernhard Froehlich <decke@FreeBSD.org>
AuthorDate: 2024-04-23 18:14:51 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2024-06-24 15:21:04 +0000

    www/mattermost-server: Update to 8.1.12

    The old hack to overwrite go.mod and replace some unsupported keywords
    did not work anymore so we roll our own distfile now including
    vendorized dependencies.

    PR:             278462
    Approved by:    maintainer (implicit)

    (cherry picked from commit 6b177df5fcb8048b66d24a1cab847338e6aa34ac)

 www/mattermost-server/Makefile | 15 +++------------
 www/mattermost-server/distinfo |  8 +++-----
 2 files changed, 6 insertions(+), 17 deletions(-)
Comment 9 commit-hook freebsd_committer freebsd_triage 2024-06-30 19:13:40 UTC
A commit in branch 2024Q2 references this bug:

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

commit 88dd805cda0cf8af031c63117292efa068b5dd91
Author:     Bernhard Froehlich <decke@FreeBSD.org>
AuthorDate: 2024-04-23 18:25:37 +0000
Commit:     Daniel Engberg <diizzy@FreeBSD.org>
CommitDate: 2024-06-30 19:11:21 +0000

    www/mattermost-webapp: Update to 8.1.12

    PR:             278462
    Approved by:    maintainer (implicit)

    (cherry picked from commit 7680ac5879635507b9bbf56d04d6d9ded39cb5e5)

 www/mattermost-webapp/Makefile  |  2 +-
 www/mattermost-webapp/distinfo  |  6 +++---
 www/mattermost-webapp/pkg-plist | 12 ++++++------
 3 files changed, 10 insertions(+), 10 deletions(-)