Skip to content

Commit

Permalink
chore(buck2): update rustc_action.py Nix patch
Browse files Browse the repository at this point in the history
Update to patch required after change in
facebook/buck2-prelude@9e1cfaf
resulted in a merge conflict (trivial to resolve but there nonetheless).

References: #2266
References: facebook/buck2#466

Signed-off-by: Fletcher Nichol <[email protected]>
  • Loading branch information
fnichol committed Nov 23, 2023
1 parent fad373e commit da4bc1c
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions third-party/patches/nix_rustc_action.py.patch
Original file line number Diff line number Diff line change
@@ -1,16 +1,14 @@
diff --git a/prelude/rust/tools/rustc_action.py b/prelude/rust/tools/rustc_action.py
index b4b4a0176..bfe952cc7 100755
--- a/prelude/rust/tools/rustc_action.py
+++ b/prelude/rust/tools/rustc_action.py
@@ -228,6 +228,7 @@ async def main() -> int:
--- prelude/rust/tools/rustc_action.py.orig 2023-11-23 12:43:59.061213695 -0700
+++ prelude/rust/tools/rustc_action.py 2023-11-23 12:41:00.948050856 -0700
@@ -259,6 +259,7 @@
]
if k in os.environ
}
+ nix_env(env)
if args.env:
# Unescape previously escaped newlines.
# Example: \\\\n\\n -> \\\n\n -> \\n\n
@@ -326,4 +327,38 @@ async def main() -> int:
@@ -369,6 +370,40 @@
return res


Expand Down Expand Up @@ -48,4 +46,6 @@ index b4b4a0176..bfe952cc7 100755
+ env.update({k: v for k, v in vars_starting_with.items()})
+
+
sys.exit(asyncio.run(main()))
# There is a bug with asyncio.run() on Windows:
# https://bugs.python.org/issue39232
sys.exit(asyncio.get_event_loop().run_until_complete(main()))

0 comments on commit da4bc1c

Please sign in to comment.