SteveSandersonMS / dotnet-wasi-sdk

Packages for building .NET projects as standalone WASI-compliant modules
518 stars 36 forks source link

Use --force-local in tar #54

Open IS4Code opened 1 year ago

IS4Code commented 1 year ago

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