-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[antlir2][clone] add user/group option to clone
Summary: Yet another case of antlir2 being more correct than antlir1 causing us pain. Some features do need a way to clone files/directories and just force their ownership to a new username. Also updated `debuginfo.bzl` as it is one useful callsite where the user:group really should be `root:root` as antlir1 would do. Test Plan: ``` ❯ buck2 test fbcode//antlir/antlir2/test_images/clone: Buck UI: https://www.internalfb.com/buck2/30c0cbb5-4ba9-4cb0-95f0-f9d6b1c08ba5 Test UI: https://www.internalfb.com/intern/testinfra/testrun/7318349583156114 Network: Up: 37KiB Down: 20KiB (reSessionID-049c7d96-0072-4763-b2d6-91fa092aca53) Jobs completed: 156682. Time elapsed: 21.1s. Cache hits: 0%. Commands: 24 (cached: 0, remote: 0, local: 24) Tests finished: Pass 28. Fail 0. Fatal 0. Skip 0. Build failure 0 ``` Reviewed By: TangoRoxy Differential Revision: D49958653 fbshipit-source-id: 99d6dbf0902fa8a005666f109c84662f432e6164
- Loading branch information
1 parent
4863a72
commit 28cca37
Showing
5 changed files
with
158 additions
and
55 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
[file.cloned-file] | ||
op = 'added' | ||
|
||
[file.cloned-file.diff] | ||
mode = 'u+r,g+r,o+r' | ||
file-type = 'regular-file' | ||
user = "root" | ||
group = "root" | ||
text = ''' | ||
This file will be cloned! | ||
''' |
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