Skip to content

Commit d52d4a9

Browse files
committed
fix the show-utils script to list all the tools
1 parent 79f4b89 commit d52d4a9

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

util/show-utils.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,5 +38,10 @@ cd "${project_main_dir}" &&
3838
# with cargo >= v1.77.0
3939
# - if local path != '<...>/coreutils' id = "path+file://<coreutils local directory>#[email protected]"
4040
# - if local path == '<...>/coreutils' id = "path+file://<parent directory>/coreutils#0.0.26"
41-
cargo metadata "$@" --format-version 1 | jq -r '[.resolve.nodes[] | select(.id|match(".*coreutils[ |@|#]\\d+\\.\\d+\\.\\d+")) | .deps[] | select(.pkg|match("uu_")) | .name | sub("^uu_"; "")] | sort | join(" ")'
41+
cargo metadata "$@" --format-version 1 | jq -r '[.packages[]
42+
| select(.default_run == "coreutils")
43+
| .dependencies[]
44+
| select(.name | startswith("uu_"))
45+
| .name | sub("^uu_"; "")]
46+
| sort | join(" ")'
4247
fi

0 commit comments

Comments
 (0)