show-utils.sh: fix jq query to get coreutils deps#6300
show-utils.sh: fix jq query to get coreutils deps#6300BenWiederhake merged 1 commit intouutils:mainfrom
Conversation
|
You say that on cargo 1.76.0, id is something like Also, I have a feeling that this regex has been "fixed" more than once in the past, could you add some concrete examples of strings that the regex needs to match, as a comment? This would provide some light assurance that we don't regress when the next "fix" lands. |
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>
|
Sorry I have made an error in my first commit message : the correct regex to select I have pushed a new version of my fix + comments for the different outputs or |
|
GNU testsuite comparison: |
In jq query, the correct regex to select .id is ".*coreutils[ |@]\d+\.\d+\.\d+"
"coreutils 0.0.26 (path+file://<coreutils local directory>)""path+file://<coreutils local directory>#coreutils@0.0.26"Fix #6242
Tests OK on OpenBSD with cargo v1.76 and FreeBSD with cargo v1.77