-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Error with util/show-utils.sh script if main directory != coreutils #6242
Comments
In jq query, the correct regex to select .id is ".*#coreutils[ |@]\\d+\\.\\d+\\.\\d+" - with cargo v1.76.0, id = 'coreutils 0.0.26 (path+file://<coreutils local directory>)' - with cargo v1.77.0, id = 'path+file://<coreutils local directory>#coreutils@0.0.26' Fix uutils#6242 Signed-off-by: Laurent Cheylus <foxy@free.fr>
Current state of my debug for this issue
Tests with different versions of
The regexp used in the With this regexp, my tests are OK on OpenBSD (cargo v1.76.0) and FreeBSD (cargo v1.77.0) : I will send a PR to fix the |
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, id = "path+file://<coreutils local directory>#coreutils@0.0.26" Fix uutils#6242 Signed-off-by: Laurent Cheylus <foxy@free.fr>
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, id = "path+file://<coreutils local directory>#coreutils@0.0.26" Fix #6242 Signed-off-by: Laurent Cheylus <foxy@free.fr>
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:With my personal fork, I have a different name for the main directory (local Git clone) =>
rust-coreutils
. In this case, results fromutil/show-utils.sh
script is void:In
util/show-utils.sh
, the resulting list is created viacargo metadata
(JSON output) then parsed withjq
. In the jq query,.*coreutils
pattern is used for parsing => this request must be fixed to use parent directory !=coreutils
.The text was updated successfully, but these errors were encountered: