Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Summary: Use `sudo` when necessary, but make sure that the output files are still owned by the repo user. Test Plan: ``` ❯ buck2 build --show-output fbcode//metalos/os/facebook/tests:hoist_sudoers Buck UI: https://www.internalfb.com/buck2/e0b4c80f-bcb6-4f65-840b-cd406e4e7af4 Note: Using experimental modern dice Network: Up: 0B Down: 0B (reSessionID-c55e1500-bc13-472b-989b-5fa6a0256c3c) Jobs completed: 9. Time elapsed: 0.8s. Cache hits: 0%. Commands: 1 (cached: 0, remote: 0, local: 1) BUILD SUCCEEDED fbcode//metalos/os/facebook/tests:hoist_sudoers buck-out/v2/gen/fbcode/ee098b6d71c39c87/metalos/os/facebook/tests/__hoist_sudoers__/sudoers vmagro@devvm456.ncg0 in fbsource ❯ stat buck-out/v2/gen/fbcode/ee098b6d71c39c87/metalos/os/facebook/tests/__hoist_sudoers__/sudoers File: buck-out/v2/gen/fbcode/ee098b6d71c39c87/metalos/os/facebook/tests/__hoist_sudoers__/sudoers Size: 26856 Blocks: 56 IO Block: 4096 regular file Device: 21h/33d Inode: 152339007 Links: 1 Access: (0644/-rw-r--r--) Uid: (115203/ vmagro) Gid: ( 100/ users) Access: 2024-05-14 06:07:50.491523561 -0700 Modify: 2024-05-14 06:07:50.449523324 -0700 Change: 2024-05-14 06:07:50.488523544 -0700 Birth: 2024-05-14 06:07:50.449523324 -0700 ``` Reviewed By: sergeyfd Differential Revision: D57331663 fbshipit-source-id: c6f43d56831f3c064c7cc8ca1d462002a3005e67
- Loading branch information