Skip to content

Commit

Permalink
[sarif] Make SarifConfig Mutable in REPL (#5268)
Browse files Browse the repository at this point in the history
Just discovered the latest addition to #5256 of the sarif config was `val` and would not be able to be redefined for tools extending the REPL.
  • Loading branch information
DavidBakerEffendi authored Jan 29, 2025
1 parent 6b9c87e commit d12e5d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion console/src/main/scala/io/joern/console/BridgeBase.scala
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ trait BridgeBase extends InteractiveShell with ScriptExecution with PluginHandli
}
builder ++= config.runBefore
builder ++= "import _root_.io.shiftleft.semanticcpg.sarif.SarifConfig"
:: "implicit val sarifConfig: SarifConfig = SarifConfig(semanticVersion = version)"
:: "implicit var sarifConfig: SarifConfig = SarifConfig(semanticVersion = version)"
:: Nil
builder.result()
}
Expand Down

0 comments on commit d12e5d3

Please sign in to comment.