[MacPorts] #74355: Upgrade of trivy failed, caused by json.SkipFunc
MacPorts
noreply at macports.org
Mon Aug 24 08:13:29 UTC 2026
#74355: Upgrade of trivy failed, caused by json.SkipFunc
-------------------------+----------------------------------
Reporter: amadeus24 | Owner: herbygillot
Type: defect | Status: closed
Priority: Normal | Milestone:
Component: ports | Version:
Resolution: fixed | Keywords: trivy upgrade failed
Port: trivy 0.74 |
-------------------------+----------------------------------
Changes (by herbygillot):
* status: new => closed
* owner: (none) => herbygillot
* resolution: => fixed
Comment:
In [changeset:"f35cf119dc0111b8255ec8d390454a696e7800dc/macports-ports"
f35cf119dc0111b8255ec8d390454a696e7800dc/macports-ports] (master):
{{{
#!ConfigurableCommitTicketReference repository="macports-ports"
revision="f35cf119dc0111b8255ec8d390454a696e7800dc"
trivy: build directly with go, on Go 1.26
0.74.0 returns json.SkipFunc from encoding/json/v2, which Go 1.27 replaced
with errors.ErrUnsupported, so the build failed with undefined:
json.SkipFunc.
Upstream fixed it after the release, so pin the series until 0.75.
goreleaser was only driving a plain go build of one main package, and its
need for a tagged checkout is why the port fetched from git. Calling go
directly restores the checksummed archive tarball, drops the goreleaser
build dependency, which now wants the Go 1.27 this port cannot use, and
lets go.bin name the toolchain.
Closes: https://trac.macports.org/ticket/74355
Assisted-by: Claude:claude-opus-5
}}}
--
Ticket URL: <https://trac.macports.org/ticket/74355#comment:1>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list