Skip to content

Commit

Permalink
Don't attempt to install modules into test cluster more than once
Browse files Browse the repository at this point in the history
  • Loading branch information
mark-vieira committed Feb 5, 2025
1 parent 1e12b54 commit f9af3ed
Showing 1 changed file with 9 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -765,7 +765,12 @@ private void installModule(String moduleName, DefaultPluginInstallSpec installSp

});

IOUtils.syncMaybeWithLinks(modulePath, destination);
// If we aren't overriding anything we can use links here, otherwise do a full copy
if (installSpec.entitlementsOverride == null && installSpec.propertiesOverride == null) {
IOUtils.syncMaybeWithLinks(modulePath, destination);
} else {
IOUtils.syncWithCopy(modulePath, destination);
}

try {
if (installSpec.entitlementsOverride != null) {
Expand Down Expand Up @@ -794,7 +799,9 @@ private void installModule(String moduleName, DefaultPluginInstallSpec installSp
if (extendedProperty != null) {
String[] extendedModules = extendedProperty.split(",");
for (String module : extendedModules) {
installModule(module, new DefaultPluginInstallSpec(), modulePaths);
if (spec.getModules().containsKey(module) == false) {
installModule(module, new DefaultPluginInstallSpec(), modulePaths);
}
}
}
} catch (IOException e) {
Expand Down

0 comments on commit f9af3ed

Please sign in to comment.