shihchengwei-lab commented on PR #12125:
URL: https://github.com/apache/ozone/pull/12125#issuecomment-7137559369

   With `-Prelease` enabled, `RequireOS` still accepts `Mac OS X`. Maven 3.10.1 
[includes `Mac OS X` in the `unix` 
family](https://github.com/apache/maven/blob/maven-3.10.1/maven-model-builder/src/main/java/org/apache/maven/utils/Os.java#L195-L198).
   
   I reproduced this on `2e21d339` with JDK 17 in a Linux container. The second 
run changes only the OS name reported by the JVM:
   
   ```sh
   ./mvnw -N -Prelease validate
   export JDK_JAVA_OPTIONS='"-Dos.name=Mac OS X"'
   ./mvnw -v
   ./mvnw -N -Prelease validate
   ```
   
   `./mvnw -v` reported `OS name: "mac os x"` and `family: "mac"`. Both 
validation runs printed `RequireOS passed`.
   
   Could we use `<name>Linux</name>` to match the release guide? With that 
one-line change, the same Mac OS X input failed at `RequireOS`, and the Linux 
control still passed.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to