Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from
Jun 21, 2024

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>#[email protected]"

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>#[email protected]"

Fix uutils#6479

Signed-off-by: Laurent Cheylus <[email protected]>
@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.

@sylvestre sylvestre merged commit 32c5d23 into uutils:main Jun 21, 2024
69 of 70 checks passed
@lcheylus lcheylus deleted the show_utils branch June 22, 2024 08:27
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