Title: Fix Tool Cache for Self Hosted Runners by techman83 · Pull Request #461 · actions/setup-python · GitHub
Open Graph Title: Fix Tool Cache for Self Hosted Runners by techman83 · Pull Request #461 · actions/setup-python
X Title: Fix Tool Cache for Self Hosted Runners by techman83 · Pull Request #461 · actions/setup-python
Description: Description: As of actions/python-versions@f75c0e6 the default location for Linux/Mac/Windows was aligned to default to RUNNER_TOOL_CACHE if AGENT_TOOLCACHE wasn't specified. The change introduced and released in v4.1.0 didn't account for this default being different for self hosted runners and hard coded it to /opt/hostedtoolcache. This change aligns the behaviour of actions/setup-python with action/python-versions, and makes the experience of using the action the same on both hosted + self-hosted runners. I have adjusted the documentation, and made the changes in line with how the project appears to operate, but as shouldn't be much of a surprise, TypeScript isn't my day-to-day language 🙂 and welcome any feedback. If there are test cases that can be added, happy for some guidance, but I didn't see any with the commit that changed this behaviour. From my manual testing, both hosted + self-hosted work as I would expect. Hosted Linux Requirement already satisfied: setuptools in /opt/hostedtoolcache/Python/3.11.0-beta.4/x64/lib/python3.11/site-packages (58.1.0) Requirement already satisfied: pip in /opt/hostedtoolcache/Python/3.11.0-beta.4/x64/lib/python3.11/site-packages (22.0.4)` Hosted Windows Requirement already satisfied: setuptools in c:\hostedtoolcache\windows\python\3.11.0-beta.4\x64\lib\site-packages (58.1.0) Requirement already satisfied: pip in c:\hostedtoolcache\windows\python\3.11.0-beta.4\x64\lib\site-packages (22.0.4) Requirement already satisfied: pip in c:\hostedtoolcache\windows\python\3.11.0-beta.4\x64\lib\site-packages (22.0.4) Hosted Mac Requirement already satisfied: setuptools in /Users/runner/hostedtoolcache/Python/3.11.0-beta.4/x64/lib/python3.11/site-packages (58.1.0) Requirement already satisfied: pip in /Users/runner/hostedtoolcache/Python/3.11.0-beta.4/x64/lib/python3.11/site-packages (22.0.4) Self-Hosted Linux Requirement already satisfied: setuptools in /home/actions/actions-runner/_work/_tool/Python/3.11.0-beta.4/x64/lib/python3.11/site-packages (58.1.0) Requirement already satisfied: pip in /home/actions/actions-runner/_work/_tool/Python/3.11.0-beta.4/x64/lib/python3.11/site-packages (22.0.4) Related issue: Fixes #459 Check list: Mark if documentation changes are required. Mark if tests were added or updated to cover the changes.
Open Graph Description: Description: As of actions/python-versions@f75c0e6 the default location for Linux/Mac/Windows was aligned to default to RUNNER_TOOL_CACHE if AGENT_TOOLCACHE wasn't specified. The change introdu...
X Description: Description: As of actions/python-versions@f75c0e6 the default location for Linux/Mac/Windows was aligned to default to RUNNER_TOOL_CACHE if AGENT_TOOLCACHE wasn't specified. The change int...
Opengraph URL: https://github.com/actions/setup-python/pull/461
X: @github
Domain: github.com
| react-profiling | 0 |
| react-import-map | react,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 | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:5f29d361-1d40-c988-58ae-58cd56dc4671 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | E1F8:EBD3A:4E9A1C:6CE80F:6AF853C2 |
| html-safe-nonce | 9fff61dc6ad655a4c2fc290d5859f457ee8765b35d12d2321000a6b7d794c679 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMUY4OkVCRDNBOjRFOUExQzo2Q0U4MEY6NkFGODUzQzIiLCJ2aXNpdG9yX2lkIjoiMjM2MzkzNzM0NzUxMTQ2OTQ2IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | cc6ba39de0a2944df3736d01763cdc2c6d2f82a19119094a9ebb89314e97b50e |
| hovercard-subject-tag | pull_request:997442646 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,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/actions/setup-python/pull/461/files |
| twitter:image | https://avatars.githubusercontent.com/u/3467784?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/3467784?s=400&v=4 |
| og:image:alt | Description: As of actions/python-versions@f75c0e6 the default location for Linux/Mac/Windows was aligned to default to RUNNER_TOOL_CACHE if AGENT_TOOLCACHE wasn't specified. The change introdu... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5713ecd83001b2f55c3509fb7a292bf7d66d0f167c7ae87a9f7eaec5a52bf8db |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/actions/setup-python git https://github.com/actions/setup-python.git |
| octolytics-dimension-user_id | 44036562 |
| octolytics-dimension-user_login | actions |
| octolytics-dimension-repository_id | 192625525 |
| octolytics-dimension-repository_nwo | actions/setup-python |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 192625525 |
| octolytics-dimension-repository_network_root_nwo | actions/setup-python |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 653be32ff5c755082a4db662491bfbbcfc9112c1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width