Skip to content

CI: UTILITY_LIST list of tools is empty, used for cargo clippy in CICD/FreeBSD workflows #6479

@lcheylus

Description

@lcheylus

In CI, the UTILITY_LIST variable is used by cargo clippy to check lint errors (list of tools to test according to the selected features):

  • CICD workflow / job doc_warnings=> .github/workflows/CICD.yml
  • FreeBSD workflow / job style=> .github/workflows/freebsd.yml

This list is generated by the ./util/show-utils.sh script depending on features used in workflow.

With my previous fix (commit 3b96ff1), this list is correctly generated by ./util/show-utils.sh script for the different versions of Rust/cargo:

$ ./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

But in some runs of CICD and FreeBSD workflows, the UTILITY_LIST variable is empty:

I don't find why the UTILITY_LIST variable is OK when using the ./util/show-utils.sh script in command-line (tested on Linux/Debain and OpenBSD) but NOK when used in GitHub workflows.

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