René's URL Explorer Experiment


Title: Python setup.sh deleting major version directory instead of arch specific directory · Issue #1255 · actions/setup-python · GitHub

Open Graph Title: Python setup.sh deleting major version directory instead of arch specific directory · Issue #1255 · actions/setup-python

X Title: Python setup.sh deleting major version directory instead of arch specific directory · Issue #1255 · actions/setup-python

Description: Description: When I use setup-python with a matrix (e.g. arch: [arm, x86]). The setup script (setup.sh) that is being run will delete the Python version directory (e.g. python3.12.8) and not the architecture specific version. This means ...

Open Graph Description: Description: When I use setup-python with a matrix (e.g. arch: [arm, x86]). The setup script (setup.sh) that is being run will delete the Python version directory (e.g. python3.12.8) and not the ar...

X Description: Description: When I use setup-python with a matrix (e.g. arch: [arm, x86]). The setup script (setup.sh) that is being run will delete the Python version directory (e.g. python3.12.8) and not the ar...

Opengraph URL: https://github.com/actions/setup-python/issues/1255

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Python setup.sh deleting major version directory instead of arch specific directory","articleBody":"\u003c!--- Please direct any generic questions related to actions to our support community forum at https://github.community/c/code-to-cloud/github-actions/41 ---\u003e\n\u003c!--- Before opening up a new bug report, please make sure to check for similar existing issues --\u003e\n\n**Description:**\nWhen I use setup-python with a matrix (e.g. arch: [arm, x86]). The setup script (setup.sh) that is being run will delete the Python version directory (e.g. python3.12.8) and not the architecture specific version.  This means if I use a matrix and install 'arm' first the 'x86' install will delete the 'arm' installation before proceeding.\n\nWe observed this because we want to cache Python runtimes in a shared resource so they can be used by our self hosted runners.  We will run scheduled workflows that install/refresh all of the cached versions we need.\n\n**Action version:**\nv6\n\n**Platform:**\n- [x ] Ubuntu\n- [ ] macOS\n- [ ] Windows\n\n**Runner type:**\n- [ ] Hosted\n- [x ] Self-hosted\n\n**Tools version:**\n\u003c!--- Please list all of the affected Python versions (`3.8.2`, etc.)--\u003e\nInstall any Python version using a matrix.\n\n**Repro steps:**  \nA description with steps to reproduce the issue. If your have a public example or repo to share, please provide the link.\n```\n      matrix:\n        arch: [arm, x86]\n        version: ['3.12.8']\n```\n**Expected behavior:**\nThe setup script should delete the architecture specific directory only.\n\n**Actual behavior:**\nYou can see clearly from this snippet of the script what is happening\n```bash\n\necho \"Check if Python hostedtoolcache folder exist...\"\nif [ ! -d $PYTHON_TOOLCACHE_PATH ]; then\n    echo \"Creating Python hostedtoolcache folder...\"\n    mkdir -p $PYTHON_TOOLCACHE_PATH\nelif [ -d $PYTHON_TOOLCACHE_VERSION_PATH ]; then\n    echo \"Deleting Python $PYTHON_FULL_VERSION\"\n    rm -rf $PYTHON_TOOLCACHE_VERSION_PATH\nfi\n\necho \"Create Python $PYTHON_FULL_VERSION folder\"\nmkdir -p $PYTHON_TOOLCACHE_VERSION_ARCH_PATH\n```\n\nWe can work around this by using `max-parallel: 1` in our matrix configuration but this significantly slows down our refreshes.","author":{"url":"https://github.com/fergoid","@type":"Person","name":"fergoid"},"datePublished":"2025-12-08T11:07:04.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":5},"url":"https://github.com/1255/setup-python/issues/1255"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:0c46c1b9-0b2b-757c-255a-f0eafcd32017
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idD458:2C594F:23CFFE:3202E2:69694388
html-safe-nonce7fdecf322069d40773a95c65fb1faf62d2201ee69e7d0019807385a380465ec4
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENDU4OjJDNTk0RjoyM0NGRkU6MzIwMkUyOjY5Njk0Mzg4IiwidmlzaXRvcl9pZCI6IjE0MzUxMjk2OTQxMzI5Nzg1NjgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac6e287b9f3ed1ebf20381625731455e0b537b0cea10465a708aa7fddedb60139c
hovercard-subject-tagissue:3705862928
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-python/1255/issue_layout
twitter:imagehttps://opengraph.githubassets.com/efac00f5041f8b74cdea96ec7a09780e7367706f80dfc22021aec992e55a7376/actions/setup-python/issues/1255
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/efac00f5041f8b74cdea96ec7a09780e7367706f80dfc22021aec992e55a7376/actions/setup-python/issues/1255
og:image:altDescription: When I use setup-python with a matrix (e.g. arch: [arm, x86]). The setup script (setup.sh) that is being run will delete the Python version directory (e.g. python3.12.8) and not the ar...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamefergoid
hostnamegithub.com
expected-hostnamegithub.com
None54182691a21263b584d2e600b758e081b0ff1d10ffc0d2eefa51cf754b43b51d
turbo-cache-controlno-preview
go-importgithub.com/actions/setup-python git https://github.com/actions/setup-python.git
octolytics-dimension-user_id44036562
octolytics-dimension-user_loginactions
octolytics-dimension-repository_id192625525
octolytics-dimension-repository_nwoactions/setup-python
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id192625525
octolytics-dimension-repository_network_root_nwoactions/setup-python
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
released69ac0477df0f87da03b8b06cebd187012d7a930
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/actions/setup-python/issues/1255#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Factions%2Fsetup-python%2Fissues%2F1255
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
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
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
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/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-python%2Fissues%2F1255
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-python
Reloadhttps://github.com/actions/setup-python/issues/1255
Reloadhttps://github.com/actions/setup-python/issues/1255
Reloadhttps://github.com/actions/setup-python/issues/1255
actions https://github.com/actions
setup-pythonhttps://github.com/actions/setup-python
Notifications https://github.com/login?return_to=%2Factions%2Fsetup-python
Fork 692 https://github.com/login?return_to=%2Factions%2Fsetup-python
Star 2.1k https://github.com/login?return_to=%2Factions%2Fsetup-python
Code https://github.com/actions/setup-python
Issues 39 https://github.com/actions/setup-python/issues
Pull requests 36 https://github.com/actions/setup-python/pulls
Actions https://github.com/actions/setup-python/actions
Projects 0 https://github.com/actions/setup-python/projects
Security Uh oh! There was an error while loading. Please reload this page. https://github.com/actions/setup-python/security
Please reload this pagehttps://github.com/actions/setup-python/issues/1255
Insights https://github.com/actions/setup-python/pulse
Code https://github.com/actions/setup-python
Issues https://github.com/actions/setup-python/issues
Pull requests https://github.com/actions/setup-python/pulls
Actions https://github.com/actions/setup-python/actions
Projects https://github.com/actions/setup-python/projects
Security https://github.com/actions/setup-python/security
Insights https://github.com/actions/setup-python/pulse
New issuehttps://github.com/login?return_to=https://github.com/actions/setup-python/issues/1255
New issuehttps://github.com/login?return_to=https://github.com/actions/setup-python/issues/1255
Python setup.sh deleting major version directory instead of arch specific directoryhttps://github.com/actions/setup-python/issues/1255#top
https://github.com/mahabaleshwars
bugSomething isn't workinghttps://github.com/actions/setup-python/issues?q=state%3Aopen%20label%3A%22bug%22
https://github.com/fergoid
https://github.com/fergoid
fergoidhttps://github.com/fergoid
on Dec 8, 2025https://github.com/actions/setup-python/issues/1255#issue-3705862928
mahabaleshwarshttps://github.com/mahabaleshwars
bugSomething isn't workinghttps://github.com/actions/setup-python/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.