Commit f92b276
committed
Merge #13: Enable usage of machine set CRATES var
534e497 Enable usage of machine set CRATES var (Tobin C. Harding)
Pull request description:
Repos using the `run_task` script would like to set the `CRATES` env var by using
```bash
REPO_DIR=$(git rev-parse --show-toplevel)
CRATES="$(cargo metadata --no-deps --format-version 1 | jq -j -r '.packages | map(.manifest_path | rtrimstr("/Cargo.toml") | ltrimstr("'"$REPO_DIR"'/")) | join(" ")')"
```
I don't know exactly why but this results in some sort of square braces data type that seems to only work in a loop using `for crate in $CRATES` instead of the `for crate in ${CRATES[@]}` like we currently have.
ACKs for top commit:
apoelstra:
ACK 534e497
Kixunil:
ACK 534e497
Tree-SHA512: 542f0f2e4721d5efa43d298d3d0eff94cf9f701e047e3db1a882526a2def88a6504c73c52bcb04cd812e93c9d2e2fce571e25c8086f0a54dfcbfd7cb00d3f1331 file changed
+3
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
67 | | - | |
| 67 | + | |
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
| |||
111 | 111 | | |
112 | 112 | | |
113 | 113 | | |
114 | | - | |
| 114 | + | |
115 | 115 | | |
116 | 116 | | |
117 | 117 | | |
| |||
287 | 287 | | |
288 | 288 | | |
289 | 289 | | |
290 | | - | |
| 290 | + | |
291 | 291 | | |
292 | 292 | | |
293 | 293 | | |
| |||
0 commit comments