Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
This is the then announced "might be necessary, idk…" follow-up to #39 (8828a23). See #39 for background info.
Fixes the main
run()
raising anENOENT
error if~/.docker/
doesn't exist when writing the new Docker config (#42).This time I can't really say that it happens "frequently" with GitHub-hosted runners, it has been 5 months since @divyansh42 merged my initial (and apparently incomplete) fix (#39) in March. Still no idea why
~/.docker/
sometimes doesn't exist… Still it causes workflows to fail, what still is annoying. The last error happened in a private repo's workflow, thus I can't share the link…These changes are again UNTESTED! Simply because I still don't know how. I still know a little JavaScript, but still have next to zero experience with NodeJS (and honestly don't want to learn it), so please keep this in mind. I still believe that providing something to fix #42 is better than nothing (so many "still"s 😆).
Related Issue(s)
Fixes #42
Follow-up to #39
Related to #18
Related to #36 (maybe?)
Related to #41 (maybe?)
Checklist
Changes made
run()
raising anENOENT
error if~/.docker/
doesn't exist (fixes [BUG] podman login fails when missing docker configs #42, follow-up to getDockerConfigJson(): Return empty auth when~/.docker/config.json
doesn't exist #39)