forked from pantsbuild/pants
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add safe extract for archivers (pantsbuild#5248)
### Problem When Archivers (TGZ, ZIP etc) used to extract an archive, if there are multiple versions of Pants running on the same machine, Pants might try to override the destination when the destination is being used, as seenion pantsbuild#4763 . This causes occasional issues that are hard to reproduce, especially for subsystems download runtime supports. ### Solution Add a safe mode for Archive, which extract archived content into a temporary directory then use atomic rename to move the temporary directory to the final destination. If final destination exists before the rename, the errors will be ignored.
- Loading branch information
1 parent
258eca6
commit 0aa45f8
Showing
3 changed files
with
33 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters