From 4c4063f8395130957a0d49fcec810a7d0a76cf7b Mon Sep 17 00:00:00 2001 From: sofisl <55454395+sofisl@users.noreply.github.com> Date: Mon, 25 Sep 2023 15:17:16 -0700 Subject: [PATCH] chore: call non-hermetic functions since we're installing node_modules directly from the library (#1870) * chore: call non-hermetic functions since we're installing node_modules directly from the library --- synthtool/languages/node.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/synthtool/languages/node.py b/synthtool/languages/node.py index 9f8da9f87..9f3091d2e 100644 --- a/synthtool/languages/node.py +++ b/synthtool/languages/node.py @@ -213,6 +213,8 @@ def fix(hide_output=False): shell.run(["npm", "run", "fix"], hide_output=hide_output) +# TODO: delete these functions if it turns out we no longer +# need them to be hermetic. def fix_hermetic(hide_output=False): """ Fixes the formatting in the current Node.js library. It assumes that gts @@ -241,6 +243,8 @@ def compile_protos(hide_output=False): shell.run(["npx", "compileProtos", "src"], hide_output=hide_output) +# TODO: delete these functions if it turns out we no longer +# need them to be hermetic. def compile_protos_hermetic(hide_output=False): """ Compiles protos into .json, .js, and .d.ts files using @@ -265,8 +269,8 @@ def postprocess_gapic_library(hide_output=False): def postprocess_gapic_library_hermetic(hide_output=False): logger.debug("Post-processing GAPIC library...") - fix_hermetic(hide_output=hide_output) - compile_protos_hermetic(hide_output=hide_output) + fix(hide_output=hide_output) + compile_protos(hide_output=hide_output) logger.debug("Post-processing completed")