oracle-actions / setup-java

GitHub Action to download and install Oracle's Java Development Kit builds
Universal Permissive License v1.0
62 stars 11 forks source link

URI hash values must be positive #37

Closed sormuras closed 2 years ago

sormuras commented 2 years ago

When passing HASH_URI to install-as-version a negative number may be calculated. That leads to an error as the following

Error: The string '-457401206' is not valid SemVer notation for a Java version. Please check README file for code snippets and more detailed information

Proposed fix: use Math.abs(HASH) after calculating the hash value of the URI