[Bug 266813] Mk/Uses/go.mk: Fails to upgrade sysutils/opa to 0.44.0: reading xx/go.mod: open xx/go.mod: no such file or directory

From: <bugzilla-noreply_at_freebsd.org>
Date: Tue, 04 Oct 2022 11:09:31 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=266813

Dmitri Goutnik <dmgk@freebsd.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |dmgk@freebsd.org
             Status|New                         |Closed
         Resolution|---                         |Works As Intended

--- Comment #1 from Dmitri Goutnik <dmgk@freebsd.org> ---
Upstream uses replace directive that references a local path, and so it's not
go-gettable [1, 2]:

$ go install github.com/open-policy-agent/opa@v0.44.0
go: downloading github.com/open-policy-agent/opa v0.44.0
go: github.com/open-policy-agent/opa@v0.44.0 (in
github.com/open-policy-agent/opa@v0.44.0):
        The go.mod file for the module providing named packages contains one or
        more replace directives. It must not contain directives that would
cause
        it to be interpreted differently than if it were the main module.

Upstream needs to remove the replace directive or this port can be switched to
listing all dependencies with GH_TUPLE/modules2tuple.

[1] https://github.com/golang/go/issues/44840
[2] https://github.com/golang/go/issues/40276

-- 
You are receiving this mail because:
You are on the CC list for the bug.