Skip to content

Commit cb5116f

Browse files
committed
Use correct version of lsif-java when indexing on PackageHub
1 parent 548e179 commit cb5116f

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

packagehub/src/main/scala/com/sourcegraph/packagehub/PackageActor.scala

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ class PackageActor(
4949
src: String,
5050
coursier: String,
5151
store: PackageStore,
52-
packagehubUrl: String,
52+
lsifJavaVersion: String,
5353
val dir: Path,
5454
val addr: Int = 3434
5555
)(implicit ctx: Context, log: cask.Logger)
@@ -285,8 +285,9 @@ class PackageActor(
285285
"launch",
286286
"--jvm",
287287
jvm,
288-
"--contrib",
289-
"lsif-java",
288+
s"com.sourcegraph:lsif-java_2.13:${lsifJavaVersion}",
289+
"-r",
290+
"sonatype:snapshots",
290291
"--",
291292
"index",
292293
"--output",

packagehub/src/main/scala/com/sourcegraph/packagehub/PackageHub.scala

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,9 @@ case class PackageHub(
3939
postgres: PostgresOptions = PostgresOptions(),
4040
@Description("URL of the PackageHub server") packagehubUrl: String =
4141
"https://packagehub-ohcltxh6aq-uc.a.run.app",
42+
@Description(
43+
"The version of lsif-java to use for indexing packages"
44+
) lsifJavaVersion: String = BuildInfo.version,
4245
@Description("Path to the src-cli binary") src: String = "src",
4346
@Description("Path to the coursier binary") coursier: String = "coursier",
4447
@Description("If enabled, schedule an LSIF index after the given delay")
@@ -62,7 +65,7 @@ case class PackageHub(
6265
src,
6366
coursier,
6467
store,
65-
packagehubUrl,
68+
lsifJavaVersion,
6669
dir.getOrElse(app.env.cacheDirectory)
6770
)(ctx, log)
6871
val routes = new PackageRoutes(this, actor, store, log)(ctx)

0 commit comments

Comments
 (0)