Bug 263866 - Mk/Uses/go.mk: Update of sysutils/opa to 0.40.0 fails in extract: missing go.sum entry; to add it:
Summary: Mk/Uses/go.mk: Update of sysutils/opa to 0.40.0 fails in extract: missing go....
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Ports Framework (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Dmitri Goutnik
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-05-08 17:08 UTC by Yuri Victorovich
Modified: 2022-05-09 20:49 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Yuri Victorovich freebsd_committer 2022-05-08 17:08:46 UTC
After updating DISTVERSION to 0.40.0 and 'make makesum' the extract phase fails:

> go: github.com/fsnotify/fsnotify@v1.5.4: missing go.sum entry; to add it:
>         go mod download github.com/fsnotify/fsnotify
> go: github.com/fsnotify/fsnotify@v1.5.4: missing go.sum entry; to add it:
>         go mod download github.com/fsnotify/fsnotify
> *** Error code 1
Comment 1 commit-hook freebsd_committer 2022-05-09 11:16:24 UTC
A commit in branch main references this bug:

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

commit 6e236e18965327f6100473770e4edb78c94fb1d4
Author:     Dmitri Goutnik <dmgk@FreeBSD.org>
AuthorDate: 2022-05-08 20:49:05 +0000
Commit:     Dmitri Goutnik <dmgk@FreeBSD.org>
CommitDate: 2022-05-09 11:15:14 +0000

    Mk/Uses/go.mk: Try to tidy up go.sum after fetch, fix EXTRACT_ONLY

    Make a best effort attempt (without network access) to add missing
    go.sum entries using local module cache prepared by the fetch stage.

    Set EXTRACT_ONLY dynamically from DISTFILES, repair
    USE_{GITHUB,GITLAB}.

    PR:             258210
    PR:             262981
    PR:             263866

 Mk/Uses/go.mk | 12 ++++++++----
 1 file changed, 8 insertions(+), 4 deletions(-)