Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,12 @@ public ToolInstallation installTool(ToolInstallRequest request) {
} else if (!isIgnoreMissingSoftwareVersionFile()) {
LOG.warn("Deleting corrupted installation at {}", installationPath);
fileAccess.delete(installationPath);
} else {
// Version file missing but tool allows this - restore it and preserve installation
LOG.warn("Version file missing at {} - restoring it for tool {}", toolVersionFile, this.tool);
// Restore the missing file
this.context.writeVersionFile(resolvedVersion, installationPath);
return createToolInstallation(installationPath, resolvedVersion, false, processContext, additionalInstallation);
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,12 @@ protected boolean isIgnoreSoftwareRepo() {
return true;
}

@Override
protected boolean isIgnoreMissingSoftwareVersionFile() {

return true;
}

@Override
public ToolRepository getToolRepository() {

Expand Down
Loading