mirror of
https://github.com/actions/setup-go.git
synced 2025-06-28 07:53:43 +00:00
try different approach by overriding go ENV GOCACHE and GOMODCACHE vars for Windows
Signed-off-by: Anton Troshin <anton@diagrid.io>
This commit is contained in:
parent
5b1dffca1b
commit
be775566d4
3 changed files with 59 additions and 4 deletions
|
@ -3,7 +3,7 @@ import * as io from '@actions/io';
|
|||
import * as installer from './installer';
|
||||
import * as semver from 'semver';
|
||||
import path from 'path';
|
||||
import {restoreCache} from './cache-restore';
|
||||
import {restoreCache, setWindowsCacheDirectories} from './cache-restore';
|
||||
import {isCacheFeatureAvailable} from './cache-utils';
|
||||
import cp from 'child_process';
|
||||
import fs from 'fs';
|
||||
|
@ -11,6 +11,7 @@ import os from 'os';
|
|||
|
||||
export async function run() {
|
||||
try {
|
||||
await setWindowsCacheDirectories();
|
||||
//
|
||||
// versionSpec is optional. If supplied, install / use from the tool cache
|
||||
// If not supplied then problem matchers will still be setup. Useful for self-hosted.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue