We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 60cc362 + f25445f commit 586f84bCopy full SHA for 586f84b
tool/jt.rb
@@ -219,7 +219,11 @@ def find_mx
219
if which('mx')
220
'mx'
221
else
222
- mx_repo = find_or_clone_repo('https://github.com/graalvm/mx.git')
+ common_json = File.read(graal_common_json)
223
+ regex = /"mx_version":\s*"([^"]+)"/
224
+ raise "mx version not found in #{graal_common_json}" unless regex =~ common_json
225
+ mx_version = $1
226
+ mx_repo = find_or_clone_repo('https://github.com/graalvm/mx.git', mx_version)
227
"#{mx_repo}/mx"
228
end
229
0 commit comments