René's URL Explorer Experiment


Title: Import-safe entrypoints when run from non-canonical path: doesn't run · Issue #1264 · actions/setup-java · GitHub

Open Graph Title: Import-safe entrypoints when run from non-canonical path: doesn't run · Issue #1264 · actions/setup-java

X Title: Import-safe entrypoints when run from non-canonical path: doesn't run · Issue #1264 · actions/setup-java

Description: Description: **NB:**This issue may only occur when running this action outside of GitHub actions infrastructure. When running this action with a non-canonical path, such as appears to be happening on my Forgejo setup (see details below),...

Open Graph Description: Description: **NB:**This issue may only occur when running this action outside of GitHub actions infrastructure. When running this action with a non-canonical path, such as appears to be happening ...

X Description: Description: **NB:**This issue may only occur when running this action outside of GitHub actions infrastructure. When running this action with a non-canonical path, such as appears to be happening ...

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

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Import-safe entrypoints when run from non-canonical path: doesn't run","articleBody":"**Description:**\n\n**NB:**This issue may only occur when running this action outside of GitHub actions infrastructure.\n\nWhen running this action with a non-canonical path, such as appears to be happening on my Forgejo setup (see details below), the \"import-safe\" entrypoints fail to run, printing instead:\n\n> `the script is loaded as a module, so skipping the execution`\n\nThe cause seems to be:\n1. my runner loads actions into `/var/run`\n2. `/var/run` is a symlink to `/run`\n3. NodeJS appears to put a canonical path (as in: all symlinks get resolved) into `import.meta.url`\n4. `process.argv[1] === fileURLToPath(import.meta.url)` thus evaluates to false\n\nIt'd be fantastic if there were a way to make `setup-java` work under these circumstances.\n\n**Details**\n\nForgejo version: 16.0.3\nForgejo runner version: 13\nImage used to run action: ghcr.io/catthehacker/ubuntu:runner-24.04\n\n**Task version:**\nv6\n\n**Platform:**\n- [x] Ubuntu\n- [ ] macOS\n- [ ] Windows\n\n**Runner type:**\n- [ ] Hosted\n- [x] Self-hosted\n\n**Repro steps:**  \nI do not have a simple way to reproduce this, but here's a `Dockerfile` to demonstrate that `import.meta.url` contains a canonicalized path:\n\n```dockerfile\nFROM alpine\n\nRUN apk --no-cache add nodejs\nRUN mkdir dir\nRUN ln -s dir symlink\nRUN echo 'console.log(`process.argv[1]: ${process.argv[1]}`); console.log(`import.meta.url: ${import.meta.url}`)' > dir/test.js\n\nCMD node dir/test.js; node symlink/test.js\n```\n\n**Expected behavior:**\nI expect the action to run normally.\n\n**Actual behavior:**\nThe action says it won't run because the \"script was loaded as a module\"","author":{"url":"https://github.com/otaconix","@type":"Person","name":"otaconix"},"datePublished":"2026-09-07T18:04:44Z","url":"https://github.com/actions/setup-java/issues/1264"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:239ff44a-97b8-3a0e-98ca-021c4e38e7c2
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idB0AC:1587FA:72709F:98AC82:6AED2450
html-safe-nonce107e907c814507b59075b77388a91105f34685d499ef074625c36457489b00ea
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMEFDOjE1ODdGQTo3MjcwOUY6OThBQzgyOjZBRUQyNDUwIiwidmlzaXRvcl9pZCI6IjYwNDA3MDA1ODk2ODkzNDkyMDAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac0495ef349d7aef71323fe775ab7bc08dc3ec7c1e6c876f393a8873a8e611a0f9
hovercard-subject-tagissue:5377797079
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/1264/issue_layout
twitter:imagehttps://opengraph.githubassets.com/40e5ea0325eaecd09a68b892afbf3ceb2311a95e040f02932a276315b918a761/actions/setup-java/issues/1264
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/40e5ea0325eaecd09a68b892afbf3ceb2311a95e040f02932a276315b918a761/actions/setup-java/issues/1264
og:image:altDescription: **NB:**This issue may only occur when running this action outside of GitHub actions infrastructure. When running this action with a non-canonical path, such as appears to be happening ...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameotaconix
hostnamegithub.com
expected-hostnamegithub.com
Nonee3e0f7f63e50c6fe879198a93a0a023a648ecc0a5e9bc3b5e033ac57172237e6
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
release707a24b346ac8a82878b9c084efaa38a997660cb
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/actions/setup-java/issues/1264#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Factions%2Fsetup-java%2Fissues%2F1264
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
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
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://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
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Factions%2Fsetup-java%2Fissues%2F1264
Sign uphttps://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/1264
Reloadhttps://github.com/actions/setup-java/issues/1264
Reloadhttps://github.com/actions/setup-java/issues/1264
actionshttps://github.com/actions
setup-javahttps://github.com/actions/setup-java
Codehttps://github.com/actions/setup-java
Issues2 (2)https://github.com/actions/setup-java/issues
Pull requestshttps://github.com/actions/setup-java/pulls
Actionshttps://github.com/actions/setup-java/actions
Projectshttps://github.com/actions/setup-java/projects
Security and qualityhttps://github.com/actions/setup-java/security
Insightshttps://github.com/actions/setup-java/pulse
https://github.com/actions/setup-java
New issuehttps://github.com/login?return_to=https://github.com/actions/setup-java/issues/1264
New issuehttps://github.com/login?return_to=https://github.com/actions/setup-java/issues/1264
#1265https://github.com/actions/setup-java/pull/1265
Import-safe entrypoints when run from non-canonical path: doesn't runhttps://github.com/actions/setup-java/issues/1264#top
#1265https://github.com/actions/setup-java/pull/1265
https://github.com/brunoborges
bugSomething isn't workinghttps://github.com/actions/setup-java/issues?q=state%3Aopen%20label%3A%22bug%22
https://github.com/otaconix
otaconixhttps://github.com/otaconix
on Sep 7, 2026https://github.com/actions/setup-java/issues/1264#issue-5377797079
otaconixhttps://github.com/otaconix
bugSomething isn't workinghttps://github.com/actions/setup-java/issues?q=state%3Aopen%20label%3A%22bug%22
needs triagehttps://github.com/actions/setup-java/issues?q=state%3Aopen%20label%3A%22needs%20triage%22
on Sep 7, 2026https://github.com/actions/setup-java/issues/1264#event-30707829714
brunoborgeshttps://github.com/brunoborges
needs triagehttps://github.com/actions/setup-java/issues?q=state%3Aopen%20label%3A%22needs%20triage%22
on Sep 9, 2026https://github.com/actions/setup-java/issues/1264#event-30802792412
brunoborgeshttps://github.com/brunoborges
on Sep 9, 2026https://github.com/actions/setup-java/issues/1264#event-30802792579
brunoborgeshttps://github.com/brunoborges
on Sep 9, 2026https://github.com/actions/setup-java/issues/1264#event-30806533494
Fix import-safe checks when scripts are run from a path with symlinks (…https://github.com/actions/setup-java/commit/134912a529122c8803d42fbefc4adb2bd177f986
…https://github.com/actions/setup-java/pull/1265
https://docs.github.com/articles/closing-issues-via-commit-messages
134912ahttps://github.com/actions/setup-java/commit/134912a529122c8803d42fbefc4adb2bd177f986
brunoborgeshttps://github.com/brunoborges
completedhttps://github.com/actions/setup-java/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
#1265https://github.com/actions/setup-java/pull/1265
on Sep 9, 2026https://github.com/actions/setup-java/issues/1264#event-30806533513
https://github.com/otaconix
otaconixhttps://github.com/otaconix
on Sep 9, 2026https://github.com/actions/setup-java/issues/1264#issuecomment-5604173852
Sign up for freehttps://github.com/signup?return_to=https://github.com/actions/setup-java/issues/1264
Sign in to commenthttps://github.com/login?return_to=https://github.com/actions/setup-java/issues/1264
brunoborgeshttps://github.com/brunoborges
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.