-
Notifications
You must be signed in to change notification settings - Fork 14
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
ISSUE-220: replace using npx to execute action-validator, use the binary instead #576
ISSUE-220: replace using npx to execute action-validator, use the binary instead #576
Conversation
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.
Thanks for the PR. This would download the binary each time the task is run, instead could you please change it to use the the same installation method as we use for task and the local security checker e.g.
https://github.com/Lullabot/drainpipe/blob/main/src/BinaryInstaller.php
https://github.com/Lullabot/drainpipe/blob/main/drainpipe-dev/src/DevBinaryInstallerPlugin.php
@justafish I noticed that
Is that something we need to worry about? Or do something different in the binary installer? Or fallback to |
…-slow-compared-to-calling-the-binary-directly
I just added a fallback in case the binary is not available. |
That would be if you were running on Windows, directly on the host? Do we actually support doing that? @justafish thoughts? If we keep it, I think we should document that it's specifically for Windows support as a comment. |
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 added a minor tweak to the explicit path of the binary, and added Andrew's suggestion for a comment. I've tested this locally with the drainpipe-test script and all looks to be working well 👍
Thanks all!
…-slow-compared-to-calling-the-binary-directly
Description
npx
. Based on npx @action-validator/cli is really slow compared to calling the binary directly #220 (comment)action-validator
was executable with a new container, like:docker run -it tugboatqa/php:8.2.15-apache-bullseye /bin/bash