Skip to content

Commit 7cdd5ee

Browse files
committed
override maven command to test against local repo for standalone polyglot app
(cherry picked from commit 2cfd020)
1 parent bb4ed98 commit 7cdd5ee

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

mx.graalpython/mx_graalpython.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1506,7 +1506,6 @@ def graalpython_gate_runner(args, tasks):
15061506
if task:
15071507
env = {}
15081508
env['ENABLE_STANDALONE_UNITTESTS'] = 'true'
1509-
env['MAVEN_REPO_OVERRIDE'] = mx_urlrewrites.rewriteurl('https://repo1.maven.org/maven2/')
15101509
# build graalvm jdk
15111510
mx_args = ['-p', os.path.join(mx.suite('truffle').dir, '..', 'vm'), '--env', 'ce']
15121511
if not DISABLE_REBUILD:
@@ -1544,6 +1543,10 @@ def graalpython_gate_runner(args, tasks):
15441543
os.mkdir(path)
15451544
mx.maven_deploy(deploy_args)
15461545
# setup maven downloader overrides
1546+
env['MAVEN_REPO_OVERRIDE'] = ",".join([
1547+
mx_urlrewrites.rewriteurl('https://repo1.maven.org/maven2/'),
1548+
f"{pathlib.Path(path).as_uri()}/",
1549+
])
15471550
env["org.graalvm.maven.downloader.version"] = version
15481551
env["org.graalvm.maven.downloader.repository"] = f"{pathlib.Path(path).as_uri()}/"
15491552
# run the test

0 commit comments

Comments
 (0)