itchyny / gojq

Pure Go implementation of jq
MIT License
3.3k stars 119 forks source link

include "a" {search: "~/"}; #265

Closed pkoppstein closed 2 months ago

pkoppstein commented 2 months ago

From the jq documentation regarding "search" paths:

For paths starting with ~/, the user's home directory is substituted for ~.

Compare therefore:

$ jq -n -L. 'include "a" {search: "~/"}; a'
"Here"

$ gojq -n -L. 'include "a" {search: "~/"}; a'
gojq: compile error: function not defined: a/0
itchyny commented 2 months ago

Thanks for reporting.