Skip to content

Commit

Permalink
upgrade cpg (#546)
Browse files Browse the repository at this point in the history
* upgrade cpg

* upgrade scala/cpg/sbt

* inherit ammonite version from cpg

* configure NodeExtensionFinder

* latest latest deps
  • Loading branch information
mpollmeier committed Jun 15, 2021
1 parent 89c2ac4 commit ca968ba
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ enablePlugins(GitVersioning)

name := "joern"
organization := "io.shiftleft"
ThisBuild / scalaVersion := "2.13.4"
ThisBuild / scalaVersion := "2.13.6"
ThisBuild /Test /fork := true
val cpgVersion = "1.3.191"
val cpgVersion = "1.3.198"

ThisBuild / resolvers ++= Seq(
Resolver.mavenLocal,
Expand Down
2 changes: 0 additions & 2 deletions joern-cli/build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ libraryDependencies ++= Seq(
"io.github.plume-oss" % "plume" % "0.5.11" exclude("io.github.plume-oss", "cpgconv"),

"com.lihaoyi" %% "requests" % "0.6.5",
"com.lihaoyi" %% "ammonite" % "2.3.8-4-88785969" cross CrossVersion.full,
"com.github.scopt" %% "scopt" % "3.7.1",
"com.github.pathikrit" %% "better-files" % "3.9.1",
"io.circe" %% "circe-generic" % "0.12.2",
Expand All @@ -24,7 +23,6 @@ libraryDependencies ++= Seq(
"org.scalatest" %% "scalatest" % "3.1.1" % Test,
)


enablePlugins(JavaAppPackaging)
scriptClasspath := Seq("*") //wildcard import from staged `lib` dir, for simplicity and also to avoid `line too long` error on windows

Expand Down
4 changes: 3 additions & 1 deletion joern-cli/src/main/scala/io/shiftleft/joern/JoernScan.scala
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,12 @@ import org.json4s.native.Serialization
import better.files._
import io.shiftleft.dataflowengineoss.semanticsloader.Semantics
import io.shiftleft.joern.Scan.{allTag, defaultTag}
import io.shiftleft.semanticcpg.language.{DefaultNodeExtensionFinder, NodeExtensionFinder}

import scala.reflect.runtime.universe._

object JoernScanConfig {
val defaultDbVersion: String = "0.0.89"
val defaultDbVersion: String = "0.0.92"
}

case class JoernScanConfig(src: String = "",
Expand Down Expand Up @@ -168,6 +169,7 @@ class ScanOptions(var maxCallDepth: Int, var names: Array[String], var tags: Arr
extends LayerCreatorOptions {}

class Scan(options: ScanOptions)(implicit engineContext: EngineContext) extends LayerCreator {
implicit val finder: NodeExtensionFinder = DefaultNodeExtensionFinder

override val overlayName: String = Scan.overlayName
override val description: String = Scan.description
Expand Down
2 changes: 1 addition & 1 deletion project/build.properties
Original file line number Diff line number Diff line change
@@ -1 +1 @@
sbt.version=1.5.1
sbt.version=1.5.4

0 comments on commit ca968ba

Please sign in to comment.