Skip to content

Commit b3ad400

Browse files
committed
prevent duplicate license includes
1 parent 1c22f54 commit b3ad400

File tree

1 file changed

+4
-1
lines changed
  • var/ramble/repos/builtin/base_classes/application-base

1 file changed

+4
-1
lines changed

var/ramble/repos/builtin/base_classes/application-base/base_class.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3297,6 +3297,7 @@ def env_vars(self):
32973297

32983298
action_funcs = ramble.util.env.action_funcs
32993299

3300+
license_set = set()
33003301
for scope in config_scopes:
33013302
license_conf = ramble.config.config.get_config(
33023303
"licenses", scope=scope
@@ -3307,10 +3308,12 @@ def env_vars(self):
33073308
if app_licenses:
33083309
# Append logic to source file which contains the exports
33093310
shell = ramble.config.get("config:shell")
3310-
command.append(
3311+
license_set.add(
33113312
f"{source_str(shell)} {{license_input_dir}}/{constants.LICENSE_INC_NAME}"
33123313
)
33133314

3315+
command.append(license_set)
3316+
33143317
# Process environment variable actions
33153318
for env_var_set in self.environment_variable_sets:
33163319
for action, conf in env_var_set.items():

0 commit comments

Comments
 (0)