Skip to content

show-utils.sh: fix jq query to get coreutils deps#6485

Merged
sylvestre merged 1 commit intouutils:mainfrom
lcheylus:show_utils
Jun 21, 2024
Merged

show-utils.sh: fix jq query to get coreutils deps#6485
sylvestre merged 1 commit intouutils:mainfrom
lcheylus:show_utils

Conversation

@lcheylus
Copy link
Contributor

In jq query, the correct regex to select .id is ".*coreutils[ |@|#]\\d+\\.\\d+\\.\\d+"

With cargo <= v1.76, id = "coreutils 0.0.26 (path+file://<coreutils local directory>)"

With cargo >= v1.77,

  • if local path == '<parent directory>/coreutils/', id = "path+file://<parent directory>/coreutils#0.0.26"
  • if local path != '<parent directory>/coreutils/', id = "path+file://<coreutils local directory>#coreutils@0.0.26"

Fix #6479

In jq query, the correct regex to select .id is ".*coreutils[ |@|#]\\d+\\.\\d+\\.\\d+"

With cargo <= v1.76, id = "coreutils 0.0.26 (path+file://<coreutils local directory>)"

With cargo >= v1.77,
- if local path == '<parent directory>/coreutils/', id = "path+file://<parent directory>/coreutils#0.0.26"
- if local path != '<parent directory>/coreutils/', id = "path+file://<coreutils local directory>#coreutils@0.0.26"

Fix uutils#6479

Signed-off-by: Laurent Cheylus <foxy@free.fr>
@lcheylus
Copy link
Contributor Author

With this fix, the UTILITY_LIST variable used in CICD and FreeBSD workflows is correct => list of tools to test (lint) with cargo clippy for feature unix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

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

2 participants