Skip to content

Commit edcf9c8

Browse files
committed
fix(cli-helper): Stop resolving scopes when only converting ORT files
Keep the scope representation as-is when only converting an ORT file from YAML to JSON or vice versa. Note: Previously, when `withResolveScopes()` was called, the command accidentally dropped packages for entire scopes, for not yet fully understood reason. So, this avoids running into the problem when doing the simple conversion. Signed-off-by: Frank Viernau <frank.viernau@gmail.com>
1 parent f1c7ab7 commit edcf9c8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

cli-helper/src/main/kotlin/commands/ConvertOrtFileCommand.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ internal class ConvertOrtFileCommand : OrtHelperCommand(
4949
.required()
5050

5151
override fun run() {
52-
val ortResult = readOrtResult(inputOrtFile)
52+
val ortResult = readOrtResult(inputOrtFile, resolveScopes = false)
5353

5454
writeOrtResult(ortResult, outputOrtFile)
5555
}

0 commit comments

Comments
 (0)