René's URL Explorer Experiment


Title: The Corretto distribution fails to find existing versions when using a task cache · Issue #474 · actions/setup-java · GitHub

Open Graph Title: The Corretto distribution fails to find existing versions when using a task cache · Issue #474 · actions/setup-java

X Title: The Corretto distribution fails to find existing versions when using a task cache · Issue #474 · actions/setup-java

Description: Description: When using self-hosted runners on GHES with a tool cache, setup-java fails to find the cached version of the corretto distribution. This is due to Corretto using non-semver version numbers, e.g. for Java 17 the version is 17...

Open Graph Description: Description: When using self-hosted runners on GHES with a tool cache, setup-java fails to find the cached version of the corretto distribution. This is due to Corretto using non-semver version num...

X Description: Description: When using self-hosted runners on GHES with a tool cache, setup-java fails to find the cached version of the corretto distribution. This is due to Corretto using non-semver version num...

Opengraph URL: https://github.com/actions/setup-java/issues/474

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"The Corretto distribution fails to find existing versions when using a task cache ","articleBody":"**Description:**\r\nWhen using self-hosted runners on GHES with a tool cache, setup-java fails to find the cached version of the `corretto` distribution. This is due to Corretto using non-semver version numbers, e.g. for Java 17 the version is `17.0.6.10.1`\r\n\r\n**Task version:**\r\n3.3 and greater\r\n\r\n**Platform:**\r\n- [x] Ubuntu\r\n- [x] macOS\r\n- [x] Windows\r\n\r\n**Runner type:**\r\n- [ ] Hosted\r\n- [x] Self-hosted\r\n\r\n**Repro steps:**\r\nTo repro, build a task cache with a given version of Java, e.g.:\r\n```yaml\r\n      - name: Setup Java\r\n        uses: actions/setup-java@v3\r\n        with:\r\n          distribution: 'corretto'\r\n          java-version: '17'\r\n```\r\n\r\nOnce the task cache has been build, run a job with the above step that uses the task cache. When you run the job setup-java will fail to find the cached version and and attempt to reach out to the internet. In our case this is blocked by a firewall rule. \r\n\u003cimg width=\"1303\" alt=\"Screenshot 2023-03-27 at 14 11 27\" src=\"https://user-images.githubusercontent.com/380725/227947805-4cb215eb-5572-40ab-bdf7-132191ded10d.png\"\u003e\r\n\r\nTo show that this is indeed an issue with the directory names on disk, the following can be done to make setup-java find it. In our case the Corretto Java version is `17.0.6.10.1`:\r\n\r\n```yaml\r\n      - name: Fix Java Dir\r\n      run: mv /opt/hostedtoolcache/Java_Corretto_jdk/17.0.6.10.1 /opt/hostedtoolcache/Java_Corretto_jdk/17.0.6\r\n\r\n      - name: Setup Java\r\n        uses: actions/setup-java@v3\r\n        with:\r\n          distribution: 'corretto'\r\n          java-version: '17'\r\n```\r\nThe results of running this are as follows\r\n\u003cimg width=\"1303\" alt=\"Screenshot 2023-03-27 at 14 17 50\" src=\"https://user-images.githubusercontent.com/380725/227948632-da27635b-e21e-4f0b-8e0f-501ecd6a9ba8.png\"\u003e\r\n\r\n**Expected behavior:**\r\nThe setup-java action should correctly find cached versions of Corretto on disk\r\n\r\n**Actual behavior:**\r\nThe setup-java action fails to find cached versions of Corretto on disk and instead attempts to download a version from the internet.","author":{"url":"https://github.com/jamestoyer","@type":"Person","name":"jamestoyer"},"datePublished":"2023-03-27T13:20:23.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":5},"url":"https://github.com/474/setup-java/issues/474"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:9ee2575d-4727-db92-2dd1-31a884b41bc2
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id8D08:332D5D:9DF9D0:D61B49:6A515D76
html-safe-nonce12fc04862b38f1eee600adfab09eb32007ac9da5a3ed831911b5de494d2e9aa8
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4RDA4OjMzMkQ1RDo5REY5RDA6RDYxQjQ5OjZBNTE1RDc2IiwidmlzaXRvcl9pZCI6Ijg2ODM3NzE3MzkzNDYzOTQ0ODYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac3597c764ce8efba3a9cc035b912c2cff7defda526affd2ab851b6338692d8882
hovercard-subject-tagissue:1642033636
github-keyboard-shortcutsrepository,issues,actions,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/actions/setup-java/474/issue_layout
twitter:imagehttps://opengraph.githubassets.com/80e1a97c4dbe18be5fc52cf9957ddf6ad506849a14bb29fce39b7cd801074fcf/actions/setup-java/issues/474
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/80e1a97c4dbe18be5fc52cf9957ddf6ad506849a14bb29fce39b7cd801074fcf/actions/setup-java/issues/474
og:image:altDescription: When using self-hosted runners on GHES with a tool cache, setup-java fails to find the cached version of the corretto distribution. This is due to Corretto using non-semver version num...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamejamestoyer
hostnamegithub.com
expected-hostnamegithub.com
Noneb9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb
turbo-cache-controlno-preview
go-importgithub.com/actions/setup-java git https://github.com/actions/setup-java.git
octolytics-dimension-user_id44036562
octolytics-dimension-user_loginactions
octolytics-dimension-repository_id196057608
octolytics-dimension-repository_nwoactions/setup-java
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id196057608
octolytics-dimension-repository_network_root_nwoactions/setup-java
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release2eeb434949a926fad21064b4d395a54759f7a0b2
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/actions/setup-java/issues/474#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Factions%2Fsetup-java%2Fissues%2F474
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Factions%2Fsetup-java%2Fissues%2F474
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=actions%2Fsetup-java
Reloadhttps://github.com/actions/setup-java/issues/474
Reloadhttps://github.com/actions/setup-java/issues/474
Reloadhttps://github.com/actions/setup-java/issues/474
Please reload this pagehttps://github.com/actions/setup-java/issues/474
actions https://github.com/actions
setup-javahttps://github.com/actions/setup-java
Notifications https://github.com/login?return_to=%2Factions%2Fsetup-java
Fork 864 https://github.com/login?return_to=%2Factions%2Fsetup-java
Star 2k https://github.com/login?return_to=%2Factions%2Fsetup-java
Code https://github.com/actions/setup-java
Issues 21 https://github.com/actions/setup-java/issues
Pull requests 5 https://github.com/actions/setup-java/pulls
Actions https://github.com/actions/setup-java/actions
Projects https://github.com/actions/setup-java/projects
Security and quality 0 https://github.com/actions/setup-java/security
Insights https://github.com/actions/setup-java/pulse
Code https://github.com/actions/setup-java
Issues https://github.com/actions/setup-java/issues
Pull requests https://github.com/actions/setup-java/pulls
Actions https://github.com/actions/setup-java/actions
Projects https://github.com/actions/setup-java/projects
Security and quality https://github.com/actions/setup-java/security
Insights https://github.com/actions/setup-java/pulse
#480https://github.com/actions/setup-java/pull/480
The Corretto distribution fails to find existing versions when using a task cache https://github.com/actions/setup-java/issues/474#top
#480https://github.com/actions/setup-java/pull/480
https://github.com/IvanZosimov
bugSomething isn't workinghttps://github.com/actions/setup-java/issues?q=state%3Aopen%20label%3A%22bug%22
https://github.com/jamestoyer
jamestoyerhttps://github.com/jamestoyer
on Mar 27, 2023https://github.com/actions/setup-java/issues/474#issue-1642033636
https://user-images.githubusercontent.com/380725/227947805-4cb215eb-5572-40ab-bdf7-132191ded10d.png
https://user-images.githubusercontent.com/380725/227948632-da27635b-e21e-4f0b-8e0f-501ecd6a9ba8.png
IvanZosimovhttps://github.com/IvanZosimov
bugSomething isn't workinghttps://github.com/actions/setup-java/issues?q=state%3Aopen%20label%3A%22bug%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.