[MacPorts] #74355: Upgrade of trivy failed, caused by json.SkipFunc

MacPorts noreply at macports.org
Mon Aug 24 07:29:28 UTC 2026


#74355: Upgrade of trivy failed, caused by json.SkipFunc
----------------------------------+------------------------
 Reporter:  amadeus24             |      Owner:  (none)
     Type:  defect                |     Status:  new
 Priority:  Normal                |  Milestone:
Component:  ports                 |    Version:
 Keywords:  trivy upgrade failed  |       Port:  trivy 0.74
----------------------------------+------------------------
 {{{trivy}}} build upgrade failed, due to {{{json.SkipFunc}}}, which is
 skipped in {{{go 1.27}}}.\\
 Portfile mention {{{go.toolchain_min 1.26.3}}}, but because of other
 dependencies I have also {{{go 1.27}}} and since in this go version the
 experimental {{{json.SkipFunc}}} is skipped, {{{trivy}}} failed to
 build.\\
 Extract from main.log:\\
 {{{
 :info:build     │ # github.com/aquasecurity/trivy/pkg/x/json
 :info:build     │ pkg/x/json/json.go:109:16: undefined: json.SkipFunc
 :info:build     target=darwin_arm64_v8.0
 :info:build Command failed:  cd "/opt/local/var/macports/build/trivy-
 578975e6/work/gopath/src/github.com/aquasecurity/trivy" && goreleaser
 build --single-target --id=build-macos
 :info:build Exit code: 1
 :error:build Failed to build trivy: command execution failed
 }}}

-- 
Ticket URL: <https://trac.macports.org/ticket/74355>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list