Skip to content

Commit 7404576

Browse files
Revert "Updated joern, cpg, and re-used x2cpg API (#337)" (#346)
This reverts commit 6c2c3a5.
1 parent 6c2c3a5 commit 7404576

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+1353
-1010
lines changed

.github/workflows/pr.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
java-version: '11'
2121
cache: 'sbt'
2222
- name: Compile and run tests
23-
run: sbt test
23+
run: sbt clean +test
2424
formatting:
2525
runs-on: ubuntu-22.04
2626
steps:
@@ -34,6 +34,6 @@ jobs:
3434
java-version: '11'
3535
cache: 'sbt'
3636
- name: Check formatting
37-
run: sbt scalafmtCheck Test/scalafmtCheck
37+
run: sbt scalafmtCheck test:scalafmtCheck
3838
- run: echo "Previous step failed because code is not formatted. Run 'sbt scalafmt'"
3939
if: ${{ failure() }}

build.sbt

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
val cpgVersion = "1.6.13"
2-
val joernVersion = "2.0.392"
1+
val cpgVersion = "1.6.11"
2+
val joernVersion = "2.0.335"
33

44
val gitCommitString = SettingKey[String]("gitSha")
55

@@ -27,11 +27,10 @@ lazy val commonSettings = Seq(
2727
"io.shiftleft" %% "codepropertygraph" % cpgVersion,
2828
"io.joern" %% "x2cpg" % joernVersion,
2929
"com.github.scopt" %% "scopt" % "4.1.0",
30-
// do not update to 23.x as this requires JDK >= 19
31-
"org.graalvm.js" % "js" % "22.3.5",
32-
"com.fasterxml.jackson.core" % "jackson-databind" % "2.17.1",
30+
"org.graalvm.js" % "js" % "22.3.4",
31+
"com.fasterxml.jackson.core" % "jackson-databind" % "2.15.3",
3332
"com.atlassian.sourcemap" % "sourcemap" % "2.0.0",
34-
"commons-io" % "commons-io" % "2.16.1",
33+
"commons-io" % "commons-io" % "2.13.0",
3534
"org.slf4j" % "slf4j-api" % "2.0.7",
3635
"org.apache.logging.log4j" % "log4j-slf4j2-impl" % "2.20.0" % Optional,
3736
"org.apache.logging.log4j" % "log4j-core" % "2.20.0" % Optional,

project/plugins.sbt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ addSbtPlugin("com.github.sbt" % "sbt-native-packager" % "1.9.16")
22
addSbtPlugin("org.scalameta" % "sbt-scalafmt" % "2.5.0")
33
addSbtPlugin("io.shiftleft" % "sbt-ci-release-early" % "2.0.27")
44
addSbtPlugin("com.dwijnand" % "sbt-dynver" % "4.1.1")
5-
addSbtPlugin("com.eed3si9n" % "sbt-buildinfo" % "0.12.0")
5+
addSbtPlugin("com.eed3si9n" % "sbt-buildinfo" % "0.10.0")

src/main/scala/io/shiftleft/js2cpg/astcreation/AstCreator.scala

Lines changed: 411 additions & 331 deletions
Large diffs are not rendered by default.

src/main/scala/io/shiftleft/js2cpg/astcreation/AstEdgeBuilder.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import io.shiftleft.js2cpg.datastructures.OrderTracker
66
import overflowdb.BatchedUpdate.DiffGraphBuilder
77
import org.slf4j.LoggerFactory
88

9-
trait AstEdgeBuilder { this: AstCreator =>
9+
class AstEdgeBuilder(private val diffGraph: DiffGraphBuilder) {
1010

1111
private val logger = LoggerFactory.getLogger(getClass)
1212

0 commit comments

Comments
 (0)