Skip to content

[rush] Remove node tar fallback - #3653

Merged
David Michon (dmichon-msft) merged 1 commit into
microsoft:mainfrom
dmichon-msft:node-tar-cleanup
Sep 27, 2022
Merged

David Michon (dmichon-msft) merged 1 commit into
microsoft:mainfrom
dmichon-msft:node-tar-cleanup

Conversation

@dmichon-msft

@dmichon-msft David Michon (dmichon-msft) commented Sep 26, 2022 •

Copy link
Copy Markdown
Contributor

Summary

Fallback to the node implementation of tar in practice seems to only occur when the tarball is invalid, unless the tar is not on PATH. This results in restoring from corrupt cache entries and producing an invalid build result.

This PR removes the fallback to node tar.

Fixes #3454
Fixes #2827

Details

Completely disables fallback path to node implementation of tar. Updates logged warning to suggest ensuring that tar is on PATH or setting RUSH_TAR_EXECUTABLE_PATH to point to tar in the event that the binary cannot be found.

How it was tested

This is the normal state for most builds.

Comment thread libraries/rush-lib/src/logic/buildCache/ProjectBuildCache.ts Outdated
Comment thread common/changes/@microsoft/rush/node-tar-cleanup_2022-09-26-20-33.json Outdated
@dmichon-msft
David Michon (dmichon-msft) merged commit 91e0a94 into microsoft:main Sep 27, 2022
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

Successfully merging this pull request may close these issues.

[rush] rush build fails and doesn't recover if a cache entry is invalid [rush] Corrupted build cache entries produce wrong (incomplete) builds

2 participants