From 3e503fd0a905662ea5237a1c1db762e669752035 Mon Sep 17 00:00:00 2001 From: Michael Cho Date: Fri, 27 May 2022 10:26:42 -0700 Subject: [PATCH] serverless: deuniversalize fsevents.node Closes #102432. Signed-off-by: Sean Molenaar <1484494+SMillerDev@users.noreply.github.com> Signed-off-by: Carlo Cabrera <30379873+carlocab@users.noreply.github.com> Signed-off-by: Rui Chen Signed-off-by: BrewTestBot <1589480+BrewTestBot@users.noreply.github.com> --- Formula/serverless.rb | 3 +++ audit_exceptions/universal_binary_allowlist.json | 1 - 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Formula/serverless.rb b/Formula/serverless.rb index 531f0201308..3a5e9a64380 100644 --- a/Formula/serverless.rb +++ b/Formula/serverless.rb @@ -29,6 +29,9 @@ class Serverless < Formula .glob("sdk-py/serverless_sdk/vendor/wrapt/_wrappers.cpython-*-linux-gnu.so") .map(&:unlink) .empty? && raise("Unable to find wrapt shared library to delete.") + + # Replace universal binaries with their native slices + deuniversalize_machos libexec/"lib/node_modules/serverless/node_modules/fsevents/fsevents.node" end test do diff --git a/audit_exceptions/universal_binary_allowlist.json b/audit_exceptions/universal_binary_allowlist.json index 5f6f95fdfa9..8a2616bc60c 100644 --- a/audit_exceptions/universal_binary_allowlist.json +++ b/audit_exceptions/universal_binary_allowlist.json @@ -16,7 +16,6 @@ "netlify-cli", "node-sass", "openjdk@11", - "serverless", "sourcery", "swift" ]