mirror of
https://github.com/actions/setup-go.git
synced 2025-07-01 05:33:43 +00:00
limit to github hosted runners
This commit is contained in:
parent
7eefc6eb21
commit
96a955403c
2 changed files with 9 additions and 2 deletions
5
dist/setup/index.js
vendored
5
dist/setup/index.js
vendored
|
@ -61464,7 +61464,10 @@ function installGoVersion(info, auth, arch) {
|
|||
if (info.type === 'dist') {
|
||||
extPath = path.join(extPath, 'go');
|
||||
}
|
||||
if (isWindows) {
|
||||
// for github hosted windows runner handle latency of OS drive
|
||||
// by avoiding write operations to C:
|
||||
const isHosted = (process.env['RUNNER_ENVIRONMENT'] = 'github-hosted');
|
||||
if (isWindows && isHosted) {
|
||||
const defaultToolCacheRoot = process.env['RUNNER_TOOL_CACHE'] || '';
|
||||
const substitutedToolCacheRoot = defaultToolCacheRoot
|
||||
.replace('C:', 'D:')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue