Title: Allow differentiating Zulu releases with/without CRaC · Issue #636 · actions/setup-java · GitHub
Open Graph Title: Allow differentiating Zulu releases with/without CRaC · Issue #636 · actions/setup-java
X Title: Allow differentiating Zulu releases with/without CRaC · Issue #636 · actions/setup-java
Description: Description: Currently, if I specify the following options: distribution: 'zulu' java-version: '21' Then actions/setup-java will download zulu21.34.19-ca-crac-jdk21.0.3-linux_x64.tar.gz. Notice that this is the build with the optional CR...
Open Graph Description: Description: Currently, if I specify the following options: distribution: 'zulu' java-version: '21' Then actions/setup-java will download zulu21.34.19-ca-crac-jdk21.0.3-linux_x64.tar.gz. Notice tha...
X Description: Description: Currently, if I specify the following options: distribution: 'zulu' java-version: '21' Then actions/setup-java will download zulu21.34.19-ca-crac-jdk21.0.3-linux_x64.ta...
Opengraph URL: https://github.com/actions/setup-java/issues/636
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Allow differentiating Zulu releases with/without CRaC","articleBody":"**Description:**\r\n\r\nCurrently, if I specify the following options:\r\n\r\n```yaml\r\ndistribution: 'zulu'\r\njava-version: '21'\r\n```\r\n\r\nThen `actions/setup-java` will download `zulu21.34.19-ca-crac-jdk21.0.3-linux_x64.tar.gz`. Notice that this is the build with the optional CRaC feature (`-crac` in the name) rather than the default build (`zulu21.34.19-ca-jdk21.0.3-linux_x64.tar.gz`). Not necessarily a big deal, but weird since this is an optional feature rather than the default Zulu build. This doesn't seem intentional, rather it just happens because the `-crac` version ends up being first in the list.\r\n\r\nI investigated a bit, and setup-java uses the `https://api.azul.com/zulu/download/community/v1.0/bundles/` API, which does not seem to offer the ability to filter out CRaC builds. Azul recommends migrating to the newer `https://api.azul.com/metadata/v1/zulu/packages/` API (see [the migration guide](https://docs.azul.com/core/metadata-api-migration)), which does have such a filter.\r\n\r\nAfter a few tests with the [Swagger UI for the new API](https://api.azul.com/metadata/v1/docs/swagger), here's the queries I would probably expect (assuming Linux x64 and `java-version: '21'` for this example):\r\n\r\n- `java-package: 'jdk'` (or the default): `https://api.azul.com/metadata/v1/zulu/packages/?java_version=21\u0026os=linux-glibc\u0026arch=x64\u0026archive_type=tar.gz\u0026java_package_type=jdk\u0026latest=true\u0026release_status=ga\u0026availability_types=ca\u0026certifications=tck\u0026javafx_bundled=false\u0026crac_supported=false`\r\n- `java-package: 'jdk+fx'`: `https://api.azul.com/metadata/v1/zulu/packages/?java_version=21\u0026os=linux-glibc\u0026arch=x64\u0026archive_type=tar.gz\u0026java_package_type=jdk\u0026latest=true\u0026release_status=ga\u0026availability_types=ca\u0026certifications=tck\u0026javafx_bundled=true\u0026crac_supported=false`\r\n- `java-package: 'jdk+crac'`: `https://api.azul.com/metadata/v1/zulu/packages/?java_version=21\u0026os=linux-glibc\u0026arch=x64\u0026archive_type=tar.gz\u0026java_package_type=jdk\u0026latest=true\u0026release_status=ga\u0026availability_types=ca\u0026certifications=tck\u0026javafx_bundled=false\u0026crac_supported=true`\r\n- Azul doesn't seem to offer packages with both JavaFX and CRaC at the same time.\r\n\r\nWhat do you think?\r\n\r\n**Justification:**\r\n\r\n- The optional inclusion of CRaC should be treated like the optional bundling of JavaFX (i.e. an option but not the default).\r\n- AFAICT, this requires migrating to Azul's new API, but that's what they recommend anyway.\r\n\r\nNote that I don't know of any specific issue with using the `-crac` build when it's not needed, so it would be more for the principle of intentionally selecting the type of build used rather than just getting whichever one happens to be first in the list.\r\n\r\n**Are you willing to submit a PR?**\r\n\r\nI can probably try, it doesn't seem too complicated - but no guarantee that I would have the time right away.","author":{"url":"https://github.com/guilgaly","@type":"Person","name":"guilgaly"},"datePublished":"2024-06-04T14:08:27.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":6},"url":"https://github.com/636/setup-java/issues/636"}
| 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:105c39f3-e4df-0272-0869-62167caf3d32 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B678:281B19:17A64D1:2234A46:6A4CEADC |
| html-safe-nonce | 898da6251fd607fb4f87c55aec2df364995836673fdbeb0b0226b64c139b3348 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCNjc4OjI4MUIxOToxN0E2NEQxOjIyMzRBNDY6NkE0Q0VBREMiLCJ2aXNpdG9yX2lkIjoiMjY5Nzc5NTMyNjkyODgwODY2OCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | fc0a737fcee2df3b9091f2a4c9c11a5bc21ec5cf0fa0b29394de8cee47a59c4a |
| hovercard-subject-tag | issue:2333642738 |
| 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/636/issue_layout |
| twitter:image | https://opengraph.githubassets.com/1e8c2e2fde77cc68da395589d35a12f852c0f58633adad8d1cafc3cfd8de80b4/actions/setup-java/issues/636 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/1e8c2e2fde77cc68da395589d35a12f852c0f58633adad8d1cafc3cfd8de80b4/actions/setup-java/issues/636 |
| og:image:alt | Description: Currently, if I specify the following options: distribution: 'zulu' java-version: '21' Then actions/setup-java will download zulu21.34.19-ca-crac-jdk21.0.3-linux_x64.tar.gz. Notice tha... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | guilgaly |
| hostname | github.com |
| expected-hostname | github.com |
| None | 299b43bca6e02ad35197ffeba30d2466846d5fb02ab96fbced5b5e6cec589fb8 |
| 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 | c5a57f04eeb310f57c73fd6d751d957e2ca27ed2 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width