-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Overwrite files when extracting with GNU tar #717
Conversation
When using GNU tar, if a file already exists, from a previous run or another cached action, it results in a slew of warning messages that can cause issues for the run. Non-GNU versions appear to automatically overwrite existing files. From the BSD tar manpage: ``` -x Extract to disk from the archive. If a file with the same name appears more than once in the archive, each copy will be extracted, with later copies overwriting (replacing) earlier copies. ``` This change adds the use of `--overwrite` when using GNU tar so that any existing files will just be overwritten as well. Signed-off-by: Sean McGinnis <[email protected]>
Closing in favor of #807, will release a new version this week |
Hi. This doesn't appear to be fully resolved.
|
Can confirm this isn't fixed. |
Fairly sure no one is looking at comments on old closed issues, so a new issue and an accompanying PR is probably the best chance to get this resolved. |
When using GNU tar, if a file already exists, from a previous run or
another cached action, it results in a slew of warning messages that
can cause issues for the run.
Non-GNU versions appear to automatically overwrite existing files.
From the BSD tar manpage:
This change adds the use of
--overwrite
when using GNU tar so thatany existing files will just be overwritten as well.
This is to help address issues encountered with golangci/golangci-lint-action
documented here:
golangci/golangci-lint-action#135