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:
Anton Troshin 2024-11-19 21:15:12 -06:00
parent 5b1dffca1b
commit be775566d4
No known key found for this signature in database
GPG key ID: 9F8A96ACA9EB6363
3 changed files with 59 additions and 4 deletions

View file

@ -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.