From 714b4321dc71f7c60c3106d1fb00bd0849a9ea34 Mon Sep 17 00:00:00 2001 From: Javier Goizueta Date: Fri, 27 Oct 2023 13:18:42 +0200 Subject: [PATCH] fix SETUP dependencies --- clouds/bigquery/common/build_modules.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/clouds/bigquery/common/build_modules.js b/clouds/bigquery/common/build_modules.js index ae2620d18..e691541c1 100755 --- a/clouds/bigquery/common/build_modules.js +++ b/clouds/bigquery/common/build_modules.js @@ -99,7 +99,7 @@ functionsFilter.forEach(f => { if (!nodeps) { functions.forEach(mainFunction => { functions.forEach(depFunction => { - if (mainFunction.name != depFunction.name && depFunction.name !== 'SETUP') { + if (mainFunction.name != depFunction.name) { const depFunctionMatches = []; depFunctionMatches.push(...depFunction.content.replace(/(\r\n|\n|\r)/gm,' ').matchAll(new RegExp('(?<=(? mainFunction.content.includes(`DATASET@@.${depFunctionName}`))) { + if (depFunctionNames.some((depFunctionName) => mainFunction.content.includes(`DATASET@@.${depFunctionName}\`(`))) { mainFunction.dependencies.push(depFunction.name); } }