Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion backend/src/managed_runtimes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,6 @@ pub fn inspect_jdk(home: &Path, os: &str, arch: &str) -> Option<(PathBuf, String
.iter()
.all(|name| native_launcher(&home.join(format!("bin/{name}{suffix}")), os, arch))
|| !regular_nonempty(&home.join("lib/modules"))
|| !regular_nonempty(&home.join("jmods/java.base.jmod"))
{
return None;
}
Expand Down
3 changes: 2 additions & 1 deletion backend/tests/repository_pins.rs
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,8 @@ fn managed_dependencies_pin_all_six_platforms_and_bind_only_the_service_tool() {
if dependency["id"] == "jdk" {
assert_eq!(dependency["tool"], SERVER_RUNTIME_TOOL);
assert_eq!(dependency["version"], JDK_VERSION);
let expected_prefix = if artifact["os"] == "windows" && artifact["arch"] == "arm64" {
let expected_prefix = if artifact["os"] == "windows" && artifact["arch"] == "arm64"
{
"jdk-25.0.5.0.2+1"
} else {
"jdk-25.0.5+8"
Expand Down
2 changes: 1 addition & 1 deletion scripts/package/prepare-test-jdk.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export function prepareTestJDK(){
const home=join(directory,artifact.stripPrefix,artifact.home??'');
const executable=join(home,artifact.executable);
const suffix=os==='windows'?'.exe':'';
if([executable,join(home,`bin/javac${suffix}`),join(home,'release'),join(home,'lib/modules'),join(home,'jmods/java.base.jmod')].every(existsSync))return executable;
if([executable,join(home,`bin/javac${suffix}`),join(home,'release'),join(home,'lib/modules')].every(existsSync))return executable;
mkdirSync(cache,{recursive:true});
const archive=join(cache,basename(new URL(artifact.url).pathname));
if(!existsSync(archive)||digest(archive)!==artifact.sha256){
Expand Down
Loading