mirror of
https://github.com/nodejs/node.git
synced 2025-05-18 20:53:29 +00:00

PR-URL: https://github.com/nodejs/node/pull/54077 Reviewed-By: Jiawen Geng <technicalcute@gmail.com> Reviewed-By: Richard Lau <rlau@redhat.com> Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: Marco Ippolito <marcoippolito54@gmail.com>
18 lines
855 B
Plaintext
18 lines
855 B
Plaintext
diff --git a/third_party/jinja2/environment.py b/third_party/jinja2/environment.py
|
|
index ea04e8b44330f..8995ac2633797 100644
|
|
--- a/third_party/jinja2/environment.py
|
|
+++ b/third_party/jinja2/environment.py
|
|
@@ -852,6 +852,12 @@ class Environment:
|
|
if zip:
|
|
info = ZipInfo(filename)
|
|
info.external_attr = 0o755 << 16
|
|
+ # Set create_system=3 (Unix). Otherwise, the generated
|
|
+ # zipfiles on Windows aren't identical to the ones on
|
|
+ # Linux and Mac.
|
|
+ # This is problematic for local/remote deterministic checks.
|
|
+ # See also http://crbug.com/341239674#comment14
|
|
+ info.create_system = 3
|
|
zip_file.writestr(info, data)
|
|
else:
|
|
with open(os.path.join(target, filename), "wb") as f:
|