mirror of
https://github.com/actions/setup-python.git
synced 2026-11-16 05:55:02 +08:00
Merge be4c7f1c4e into 90485b7ad2
This commit is contained in:
commit
97d0643e8a
1 changed files with 6 additions and 1 deletions
|
|
@ -94,7 +94,12 @@ function resolveVersionInput() {
|
||||||
}
|
}
|
||||||
|
|
||||||
async function run() {
|
async function run() {
|
||||||
if (IS_MAC) {
|
if (IS_MAC && !process.env.AGENT_TOOLSDIRECTORY?.trim()) {
|
||||||
|
// Default to the hosted-images location only when the runner did not
|
||||||
|
// provide one. Self-hosted macOS runners export their own
|
||||||
|
// AGENT_TOOLSDIRECTORY; overwriting it unconditionally makes the action
|
||||||
|
// mkdir /Users/runner/hostedtoolcache, which fails on hosts where the
|
||||||
|
// `runner` user does not exist (#914).
|
||||||
process.env['AGENT_TOOLSDIRECTORY'] = '/Users/runner/hostedtoolcache';
|
process.env['AGENT_TOOLSDIRECTORY'] = '/Users/runner/hostedtoolcache';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue