Skip to content

Commit 244ae47

Browse files
committed
chore: add JAVA_HOME by default
1 parent eeb7180 commit 244ae47

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

index.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ def gen_java_and_kotlin_index():
4141
os.environ["JAVA_HOME"] = "/usr/lib/jvm/java-8-openjdk"
4242

4343
# https://sourcegraph.github.io/scip-java/docs/getting-started.html#run-scip-java-index
44-
check_call(["scip-java index --output index.scip"])
44+
check_call("scip-java index --output index.scip")
4545

4646

4747
def gen_py_index():

utils.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
def check_call(commands: typing.Union[str, list]):
99
logger.info(f"check calling: {commands}")
1010
if isinstance(commands, str):
11+
# for https://github.com/orgs/community/discussions/25738
12+
commands = "JAVA_HOME=/usr/lib/jvm/java-8-openjdk" + " " + commands
1113
subprocess.check_call(commands, env=os.environ, shell=True)
1214
else:
1315
subprocess.check_call(commands, env=os.environ)

0 commit comments

Comments
 (0)