-
Notifications
You must be signed in to change notification settings - Fork 349
Description
This is the respective issue for the analyzer that has been fixed for the scanner here:
ort/analyzer/src/main/kotlin/Analyzer.kt
Lines 153 to 161 in 927e47c
val toolVersions = mutableMapOf<String, String>() | |
info.managedFiles.keys.forEach { manager -> | |
if (manager is CommandLineTool) { | |
toolVersions[manager.descriptor.id] = manager.getVersion() | |
} | |
} | |
val run = AnalyzerRun(startTime, endTime, Environment(toolVersions = toolVersions), config, analyzerResult) |
The above code does not work anymore as expected because PackageManager
s do not implement CommandLineTool
anymore, in favor of having command objects that implement CommandLineTool
.
I'm not currently having a good idea how to fix this, so maybe @oss-review-toolkit/kotlin-devs have? Of course, we could extend PackageManager
with somehting like a nullable getCommandLineTool()
or so, but that doesn't seem to be very elegant...
Should we maybe stop tracking the analyzer tool version completely? After all, no one seems to have missed them while the above code was broken...