Skip to content

Error with util/show-utils.sh script if main directory != coreutils #6242

@lcheylus

Description

@lcheylus

util/show-utils.sh shell script is used in CI and other scripts to get the list of tools built depending on the features chosen.

If the main directory of the project is coreutils, util/show-utils.sh script works as expected:

$ util/show-utils.sh --features unix
arch base32 base64 basename basenc cat chgrp chmod chown chroot cksum comm cp csplit cut date dd df dir dircolors dirname du echo env expand expr factor false fmt fold groups hashsum head hostid hostname id install join kill link ln logname ls mkdir mkfifo mknod mktemp more mv nice nl nohup nproc numfmt od paste pathchk pinky pr printenv printf ptx pwd readlink realpath rm rmdir seq shred shuf sleep sort split stat stdbuf stty sum sync tac tail tee test timeout touch tr true truncate tsort tty uname unexpand uniq unlink uptime users vdir wc who whoami yes

With my personal fork, I have a different name for the main directory (local Git clone) => rust-coreutils. In this case, results from util/show-utils.sh script is void:

util/show-utils.sh --features unix
(No result)

In util/show-utils.sh, the resulting list is created via cargo metadata (JSON output) then parsed with jq. In the jq query, .*coreutils pattern is used for parsing => this request must be fixed to use parent directory != coreutils.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions