Title: Add/improve EA version support · Issue #34 · actions/setup-java · GitHub
Open Graph Title: Add/improve EA version support · Issue #34 · actions/setup-java
X Title: Add/improve EA version support · Issue #34 · actions/setup-java
Description: The current version specification logic in setup-java allows us to "spell" e.g. 14.0.0-ea, but semver version matching and comparison rules are "less than ideal". There are three key problems with the current logic: It does not correctly...
Open Graph Description: The current version specification logic in setup-java allows us to "spell" e.g. 14.0.0-ea, but semver version matching and comparison rules are "less than ideal". There are three key problems with ...
X Description: The current version specification logic in setup-java allows us to "spell" e.g. 14.0.0-ea, but semver version matching and comparison rules are "less than ideal". There are thre...
Opengraph URL: https://github.com/actions/setup-java/issues/34
X: @github
Domain: redirect.github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Add/improve EA version support","articleBody":"The current version specification logic in setup-java allows us to \"spell\" e.g. 14.0.0-ea, but semver version matching and comparison rules are \"less than ideal\". There are three key problems with the current logic:\r\n1. It does not correctly match to the latest EA build: Semver will use build numbers (in the version forms of e.g. 14.0.0-ea+b28) in precedence comparisons. As a result, the current spelling will match to the first (not latest) ea build in the CDN\r\n- Note: we've started hiding older EA build filenames from the index in the CDN to keep this working for people for now, but this is not a good practice or one we want to keep doing.\r\n2. It does not allow the specification of a specific EA version (e.g. EA b27 vs EA b28). Semver will ignore build numbers (spelled with e.g. +b28), and match an explicitly requested e.g. 14.0.0-ea+b28 to a cdn 14.0.0-ea+b29\r\n3. It does not support pre-release version formats that would allow #1 and #2 above to be resolved by changing the CDN file name to fit the existing logic. While the CDN can be populated with e.g. 14.0.0-ea.28, 14.0.0-ea will not match that. And will translated the current logic 14.0.0-ea.28 to 14.0.0-ea.28.x, which will not match (semver does not support .x syntax for pre-release version matching).\r\n\r\nTo prepare for an improvement, we have started populating the CDN with EA version number forms that semver can validly match and do comparisons on (e.g. 14.0.0-ea.28, 15.0.0-ea.2), but the current logic will not match to those. I will be issuing a pull request (shortly) with suggested logic updates that will correctly work with those new version number forms.= and solve the problems noted above.","author":{"url":"https://github.com/giltene","@type":"Person","name":"giltene"},"datePublished":"2019-12-22T04:17:46.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/34/setup-java/issues/34"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:be1dbccb-86ca-aa52-7267-f84b596b5c66 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B1E2:189645:4A95C4:61F229:6A4C2A4A |
| html-safe-nonce | 6f0439e98168608d93becdec0d5573133f3bab7782af7928f115be3df2a069d6 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMUUyOjE4OTY0NTo0QTk1QzQ6NjFGMjI5OjZBNEMyQTRBIiwidmlzaXRvcl9pZCI6IjM5NzI2NDkwOTc2NDMxNzQ0NzQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | ac0d2f85af881cb71bce97f88480908171c06a6933d2c22c4ccfaad765ef1e77 |
| hovercard-subject-tag | issue:541405335 |
| github-keyboard-shortcuts | repository,issues,actions,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/actions/setup-java/34/issue_layout |
| twitter:image | https://opengraph.githubassets.com/af752c93ec3e24a3586e75659e9546a5d272789f187c647bd5e80a6acc8e9e03/actions/setup-java/issues/34 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/af752c93ec3e24a3586e75659e9546a5d272789f187c647bd5e80a6acc8e9e03/actions/setup-java/issues/34 |
| og:image:alt | The current version specification logic in setup-java allows us to "spell" e.g. 14.0.0-ea, but semver version matching and comparison rules are "less than ideal". There are three key problems with ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | giltene |
| hostname | github.com |
| expected-hostname | github.com |
| None | 1b6b16d04026f131a36d57e3b01d0f4d26a51800edf48bf5ed0256e0ac905511 |
| turbo-cache-control | no-preview |
| go-import | github.com/actions/setup-java git https://github.com/actions/setup-java.git |
| octolytics-dimension-user_id | 44036562 |
| octolytics-dimension-user_login | actions |
| octolytics-dimension-repository_id | 196057608 |
| octolytics-dimension-repository_nwo | actions/setup-java |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 196057608 |
| octolytics-dimension-repository_network_root_nwo | actions/setup-java |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 9ee13484b32cf23e15fde191da4c9aa47d41201c |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width