-
Notifications
You must be signed in to change notification settings - Fork 15
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
init-pants
action fails in curl command after #21
#22
Comments
Thanks for the report @rajeshwar-nu. |
Ooof, that is super annoying, that runner.temp doesn't exist... @rajeshwar-nu a PR would be most welcome! Thanks. |
We just got hit by this issue from May last year -- it's still present in the latest v8 tag. Adding this step before the
|
@eguiraud Could you send a PR in this repo with the fix? Thanks! |
I am not sure whether the one above is the most appropriate fix (nor, if it is, where to put it exactly in this repo) |
That seems like the right fix to me. Adding HOWEVER... @eguiraud Are you running in a container? The issue may be actions/runner#965, in which case none of these solutions are robust. The container user may or may not be able to mkdir, but you'd be creating a container tempdir at a path that only makes sense on the host, which is sketchy. |
PR #21 introduced using
${{ runner.temp }}
instead of temp directory/tmp
to download get-pants script.The curl command fails with error
curl: (23) Failure writing output to destination
since the default worker temp directory/home/runner/work/_temp
does not exist.The fix would be to use flag https://curl.se/docs/manpage.html#--create-dirs which will create the directory if it does not exists.
The final command would look like this
curl --create-dirs --proto '=https' --tlsv1.2 -fsSLo ${{ runner.temp }}/get-pants.sh
The text was updated successfully, but these errors were encountered: