Created attachment 229540 [details] textproc/gojq port Add a Pure Go implementation of jq. gojq is almost jq, but it has many many different from jq, nice error messages for invalid query and JSON input, fixed various bugs of jq, and YAML support... See also https://github.com/itchyny/gojq#difference-to-jq
Take
Thanks for the patch! From the porters handbook: GO_MODULE The name of the application module as specified by the module directive in go.mod. In most cases, this is the only required variable for ports that use Go modules. Could you use that in the makfile? So something like this: GO_MODULE= github.com/itchyny/gojq Will do all the heavy lifting (can remove the the github tuples etc).
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=8b46ce03f521842fc322d33c09b4c8f5bb90d746 commit 8b46ce03f521842fc322d33c09b4c8f5bb90d746 Author: Norikatsu Shigemura <nork@ninth-nine.com> AuthorDate: 2021-11-30 21:29:47 +0000 Commit: Dries Michiels <driesm@FreeBSD.org> CommitDate: 2021-12-01 13:36:59 +0000 textproc/gojq: New port Pure Go implementation of jq. PR: 259884 Approved by: philip (mentor) Differential Revision: https://reviews.freebsd.org/D33204 textproc/Makefile | 1 + textproc/gojq/Makefile (new) | 21 +++++++++++++++++++++ textproc/gojq/distinfo (new) | 5 +++++ textproc/gojq/pkg-descr (new) | 4 ++++ textproc/gojq/pkg-plist (new) | 2 ++ 5 files changed, 33 insertions(+)
Committed with some minor modifications. Thanks!