You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Main.scala (OpenWhisk admin tool) contains MIT-licensed code from Scallop without attribution #264
build/openwhisk/tools/admin/src/main/scala/org/apache/openwhisk/core/cli/Main.scala (vendored from Apache OpenWhisk, shipped in the 0.9.0-incubating-RC7 source release) contains code copied from Scallop, which is MIT-licensed:
privatedefprintErr(message: String):Unit= {
//Taken from ScallopConfif (overrideColorOutput.value.getOrElse(System.console() !=null)) {
Console.err.println("[\u001b[31m%s\u001b[0m] Error: %s" format (printedName, message))
} else {
// no colors on outputConsole.err.println("[%s] Error: %s" format (printedName, message))
}
}
errorMessageHandler = { message =>if (overrideColorOutput.value.getOrElse(System.console() !=null)) {
Console.err.println("[\u001b[31m%s\u001b[0m] Error: %s" format (printedName, message))
} else {
// no colors on outputConsole.err.println("[%s] Error: %s" format (printedName, message))
}
sys.exit(1)
}
Scallop is licensed under the MIT License, Copyright (C) 2012 Platon Pronko and Chris Hodapp. MIT is Category A, so it can be included, but the MIT licence requires its copyright and permission notice to be kept with the copied code. Currently the file only carries the ASF header, and the top-level LICENSE does not mention Scallop.
Suggested fix, either:
Rewrite printErr independently (it is a few lines of error printing), and drop the "Taken from ScallopConf" comment; or
Keep it and add a LICENSE entry for Scallop (MIT, with its copyright line and licence text), noting the file it is used in.
The same code is in upstream Apache OpenWhisk (tools/admin/src/main/scala/org/apache/openwhisk/core/cli/Main.scala). Related: #259, #260.
Activity
sciabarracom commentedon Oct 11, 2026
We no more vendor opennwhisk so this is no more relevant
plase check branch 0.9.0 of openserverless-build