Commit d48ebdd
committed
Small refinements to the
- Rename `get-metadata` to the more accurate name `query-meta`.
Since it is being used to do more processing than just dumping
values as they literally appear in the JSON metadata.
- Catch if `cargo metadata ...` fails and don't even run `jq`.
This shouldn't increase memory requirements much, since `jq`
without `--stream` always reads its full input anyway.
(A middle ground could be to use `set -o pipefail`, but while
that has recently been added to POSIX, `sh` is `dash` on Debian
and Ubuntu, and `dash` doesn't yet support `-o pipefail`.)
- Simplify `dbg` recipe to have `query-meta` concatenate `/debug`.justfile
1 parent 404b6f4 commit d48ebdd
1 file changed
+5
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
186 | 186 | | |
187 | 187 | | |
188 | 188 | | |
189 | | - | |
190 | | - | |
191 | | - | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
192 | 192 | | |
193 | 193 | | |
194 | 194 | | |
195 | | - | |
196 | | - | |
| 195 | + | |
197 | 196 | | |
198 | 197 | | |
199 | 198 | | |
| |||
242 | 241 | | |
243 | 242 | | |
244 | 243 | | |
245 | | - | |
| 244 | + | |
246 | 245 | | |
247 | 246 | | |
248 | 247 | | |
| |||
0 commit comments