-
Notifications
You must be signed in to change notification settings - Fork 63
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
Adds yq
and ag
utilities
#59
Conversation
RUN /bin/bash -c "curl -sSLf -O $(curl -sSLf ${YQ_URL} -o - | jq -r '.assets[] | select(.name|test("linux_amd64$")) | .browser_download_url') " | ||
# Check the binary and checksum match | ||
# This is terrible, but not sure how to do this better. | ||
RUN rhash -c checksums | grep Success:1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
https://stackoverflow.com/questions/21956954/how-to-check-the-checksum-through-commandline
seems to have a good solution for it I think
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure that addresses the issue. The problem is rhash won't check just a single file, so when I check, it shows all the other release binaries from YQ as "missed" and returns 1. It also shows a single success, for the single binary that's been downloaded ( as Success:1
) so I was grep-ing on the existence of that to have a return 0 while still doing some kind of validation.
I don't know how to do something better there. Ideally, rhash would just allow for a single-file check, or something like "allow missing", but I haven't found that it has any options like that.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, this can be fixed later and we know this is a hack for now, for me that is good enough
Please fix conflicts and I'll merge |
@clcollins pinging here as I saw you are online |
Adds `yq` (yaml parsing utility) and `ag` (faster-than-grep recursive search tool) Signed-off-by: Christopher Collins <collins.christopher@gmail.com>
@georgettica Rebased, please have a look. |
/lgtm |
Adds
yq
(yaml parsing utility) andag
(faster-than-grep recursivesearch tool)
Signed-off-by: Christopher Collins collins.christopher@gmail.com