Skip to content

Conversation

@jaydeluca
Copy link
Member

@jaydeluca jaydeluca commented Mar 6, 2025

Discussed here

bumping the oshi minimum version to 5.5.0 and getting rid of the conditional for arm mac

removing variable from declaration and handling the override in a different way

@jaydeluca jaydeluca requested a review from a team as a code owner March 6, 2025 22:28
Copy link
Contributor

@breedx-splk breedx-splk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmmm...muzzle still has 5.3.1 though.

dependencies {
library("com.github.oshi:oshi-core:$oshiVersion")
// 5.5.0 is the first version that works on arm mac
library("com.github.oshi:oshi-core:5.5.0")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if your goal is to remove the variable from library declaration then you could also

if (osdetector.os == "osx" && osdetector.arch == "aarch_64" && !(findProperty("testLatestDeps") as Boolean)) {
  // 5.5.0 is the first version that works on arm mac
  configurations.testRuntimeClasspath.get().resolutionStrategy.force("com.github.oshi:oshi-core:5.5.0")
}

@jaydeluca jaydeluca changed the title Bump oshi library version Change oshi test library logic for arm mac Mar 7, 2025
Comment on lines 9 to 12
if (osdetector.os == "osx" && osdetector.arch == "aarch_64" && !(findProperty("testLatestDeps") as Boolean)) {
// 5.5.0 is the first version that works on arm mac
configurations.testRuntimeClasspath.get().resolutionStrategy.force("com.github.oshi:oshi-core:5.5.0")
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

usually we have stuff like this outside of the dependencies block, like in

configurations.testRuntimeClasspath.get().resolutionStrategy.force("com.google.guava:guava:14.0.1")

@trask trask merged commit 2849844 into open-telemetry:main Mar 7, 2025
85 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants