mirror of
https://github.com/actions/setup-go.git
synced 2025-06-30 13:13:43 +00:00
test hosted version of go
This commit is contained in:
parent
96a955403c
commit
60dde965e0
3 changed files with 27 additions and 9 deletions
4
dist/setup/index.js
vendored
4
dist/setup/index.js
vendored
|
@ -61466,8 +61466,8 @@ function installGoVersion(info, auth, arch) {
|
|||
}
|
||||
// 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 isHosted = process.env['RUNNER_ENVIRONMENT'] === 'github-hosted';
|
||||
if (isWindows && isHosted && fs_1.default.existsSync('d:\\') && fs_1.default.existsSync('c:\\')) {
|
||||
const defaultToolCacheRoot = process.env['RUNNER_TOOL_CACHE'] || '';
|
||||
const substitutedToolCacheRoot = defaultToolCacheRoot
|
||||
.replace('C:', 'D:')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue