Skip to content
This repository has been archived by the owner on Mar 28, 2024. It is now read-only.

Use --force-local in tar #54

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

IS4Code
Copy link

@IS4Code IS4Code commented Apr 27, 2023

Fixes "tar: Cannot connect to C: resolve failed"

Implementations of tar interpret path as hostname:path when given the opportunity, causing issues when given standard Windows absolute paths. --force-local should be used to prevent this behaviour, which is not required here since the temporary path should always be local.

References:
https://stackoverflow.com/questions/12823499/windows-command-line-tar-cannot-connect-to-d-resolve-failed-with-chef-knife https://superuser.com/questions/287233/tar-command-to-extract-archive-with-colon-in-the-name

Fixes "tar: Cannot connect to C: resolve failed"

Implementations or tar interpret path as `hostname:path` when given the opportunity, causing issues when given standard Windows absolute paths. `--force-local` should be used to prevent this behaviour, which is not required here since the temporary path should always be local.

References:
https://stackoverflow.com/questions/12823499/windows-command-line-tar-cannot-connect-to-d-resolve-failed-with-chef-knife
https://superuser.com/questions/287233/tar-command-to-extract-archive-with-colon-in-the-name
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant