nasa / fpp

F Prime Prime: A modeling language for F Prime
https://fprime.jpl.nasa.gov
Apache License 2.0
46 stars 31 forks source link

Fix a glitch in CI #498

Closed bocchino closed 2 weeks ago

bocchino commented 2 weeks ago

Scala 3.5 has broken the use of scala on the command line to run compiled Scala classes. scala now invokes the Scala CLI, which has different behavior. See https://www.scala-lang.org/blog/2024/08/22/scala-3.5.0-released.html. The new way to run compiled Scala classes, if any, is not documented online. Scala 3.5.0 is so new that it is not yet available in MacPorts.

For now, detect that Scala 3.5 is installed and disable the test in this case. This is OK for CI, because the checks done by this test are redundant with the checks done by the fpp-to-cpp tests. When the Scala docs and the distributions stabilize, we'll work out a better fix.