forked from facebookincubator/antlir
-
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.
[antlir2][genrule_in_image] fix execution of buck-built binaries
Summary: In dev mode, buck-built binaries are absolute symlinks to their location in the repo. This requires mounting in the repo at the same location it exists on the host, which requires creating that mountpoint, which requires that the root always be ephemeral. Test Plan: ``` ❯ buck2 test fbcode//antlir/antlir2/genrule_in_image/tests: Buck UI: https://www.internalfb.com/buck2/5a99d6bc-0303-49ba-a96f-4340a7649b71 Test UI: https://www.internalfb.com/intern/testinfra/testrun/8444249535665592 Network: Up: 12KiB Down: 16KiB (reSessionID-62e17593-51bc-40d8-88b1-0b6182ce916c) Jobs completed: 39. Time elapsed: 8.4s. Cache hits: 0%. Commands: 10 (cached: 0, remote: 0, local: 10). Fallback: 1/10 Tests finished: Pass 10. Fail 0. Fatal 0. Skip 0. Build failure 0 ``` Reviewed By: naveedgol Differential Revision: D63803843 fbshipit-source-id: f019579689b41cff8f46eb3783cabbdd3e83e8d9
- Loading branch information
1 parent
2397ada
commit 001681b
Showing
6 changed files
with
85 additions
and
16 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
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,12 @@ | ||
# Copyright (c) Meta Platforms, Inc. and affiliates. | ||
# | ||
# This source code is licensed under the MIT license found in the | ||
# LICENSE file in the root directory of this source tree. | ||
|
||
import sys | ||
|
||
|
||
def main(): | ||
out = sys.argv[1] | ||
with open(out, "w") as f: | ||
f.write("From par\n") |
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