Skip to content

Commit bc48984

Browse files
authored
Fix oshi library tests on arm mac (open-telemetry#11301)
1 parent 1401fa3 commit bc48984

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
11
plugins {
22
id("otel.library-instrumentation")
3+
id("com.google.osdetector")
34
}
45

6+
// 5.5.0 is the first version that works on arm mac
7+
val oshiVersion = if (osdetector.os == "osx" && osdetector.arch == "aarch_64") "5.5.0" else "5.3.1"
8+
59
dependencies {
6-
library("com.github.oshi:oshi-core:5.3.1")
10+
library("com.github.oshi:oshi-core:$oshiVersion")
711

812
testImplementation(project(":instrumentation:oshi:testing"))
913
}

0 commit comments

Comments
 (0)