Joel Purra
Joel Purra
@pkoppstein: > Testing for null has always been trivial in jq, and there is a lot of machinery to support null (e.g. "if" and recurse/1; by contrast, "try ... catch...
After living in the terminal for many years, I am also blind to the download links on the library web/GUI page. Although, even after finding the links, I wouldn't _dream_...
@bjackman: `mkosi` installed using `pipx` [v1.6.0](https://github.com/pypa/pipx/releases/tag/1.6.0) on Ubuntu 24.10 works for me. Took _slightly_ different steps: - Using root privileges to make the installation "global". Didn't attempt a per-user installation....
In this POC I haven't fixed importing relative modules `./other-file.jq`. Nor do I use `$PACKAGEROOT/jq.json` for package `main` file path lookups yet. But they're on their way,
> If this idea is to be implemented upstream one day, please consider choosing another name for the PACKAGEROOT env var. It is way too generic as it does not...
@Zopieux: it _is_ part of finding lib dirs for the package system in this pull request -- unless we're accidentally talking about different things -- but `$PACKAGEROOT` is never resolved...
Code comments by @nicowilliams were lost during rebase; here are the direct commit links: > https://github.com/joelpurra/jq/commit/42d20efc4d719c57d63fa031a1b3ab56cd32af8d Find package root, look for packages under 'P/.jq/packages' (proof-of-concept) > > https://github.com/joelpurra/jq/commit/1218024b736abe1f1ec97c3862cf4f5dc000ce7d Save if...
@nicowilliams: pushed updated code, hopefully addressing your comments. Further things to work on: 1. Detect the path to the main jq file in a package through `.main` in `jq.json` (default...
The default file path `P/jq/main.jq` is now used if no `-f` nor direct filter has been specified.
@nicowilliams: great! I'll look at https://github.com/nicowilliams/jq/commit/3cd687ccd68176d8d152329c39fc6bd22ee58ba2 and https://github.com/nicowilliams/jq/commit/2afc83a867dac3498a59baca0d1550eb2d5b6d59.