Skip to content
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

checkout@v3: Error: Unable to locate executable file: tar. #1434

Closed
vt-alt opened this issue Aug 22, 2023 · 1 comment
Closed

checkout@v3: Error: Unable to locate executable file: tar. #1434

vt-alt opened this issue Aug 22, 2023 · 1 comment

Comments

@vt-alt
Copy link

vt-alt commented Aug 22, 2023

When switching to actions/checkout form v1 to v3 following error appeared for opensuse/leap container workflow. Link to action log: https://github.com/lkrg-org/lkrg/actions/runs/5931933426/job/16084813925?pr=285

2023-08-21T22:07:26.6468149Z ##[group]Run actions/checkout@v3
2023-08-21T22:07:26.6468508Z with:
2023-08-21T22:07:26.6468929Z   repository: lkrg-org/lkrg
2023-08-21T22:07:26.6469456Z   token: ***
2023-08-21T22:07:26.6469695Z   ssh-strict: true
2023-08-21T22:07:26.6469962Z   persist-credentials: true
2023-08-21T22:07:26.6470224Z   clean: true
2023-08-21T22:07:26.6470570Z   sparse-checkout-cone-mode: true
2023-08-21T22:07:26.6470852Z   fetch-depth: 1
2023-08-21T22:07:26.6471079Z   lfs: false
2023-08-21T22:07:26.6471300Z   submodules: false
2023-08-21T22:07:26.6471554Z   set-safe-directory: true
2023-08-21T22:07:26.6471811Z ##[endgroup]
2023-08-21T22:07:26.6660734Z ##[command]/usr/bin/docker exec  03fc0f3597639db9c11201dafd27113c799395f2e5a57ebcb9e0c38aeb1028ca sh -c "cat /etc/*release | grep ^ID"
2023-08-21T22:07:27.1625092Z Syncing repository: lkrg-org/lkrg
2023-08-21T22:07:27.1627267Z ##[group]Getting Git version info
2023-08-21T22:07:27.1630008Z Working directory is '/__w/lkrg/lkrg'
2023-08-21T22:07:27.1630824Z ##[endgroup]
2023-08-21T22:07:27.1631268Z Deleting the contents of '/__w/lkrg/lkrg'
2023-08-21T22:07:27.1631643Z The repository will be downloaded using the GitHub REST API
2023-08-21T22:07:27.1632107Z To create a local Git repository instead, add Git 2.18 or higher to the PATH
2023-08-21T22:07:27.1632486Z Downloading the archive
2023-08-21T22:07:27.5803742Z Writing archive to disk
2023-08-21T22:07:27.5824893Z Extracting the archive
2023-08-21T22:07:27.5929938Z ##[error]Unable to locate executable file: tar. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also check the file mode to verify the file is executable.

Workflow file does not have PATH overriding: https://github.com/lkrg-org/lkrg/actions/runs/5931933426/workflow?pr=285

@vt-alt
Copy link
Author

vt-alt commented Aug 25, 2023

I just realized that opensuse/leap image does not contain tar and gzip and after I install them everything started to work again. (I wonder why it worked before with v1, though).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant