Compare commits

...
2 Commits
Author SHA1 Message Date
zhangjie 8246cd0dca update proxy domain 2023-10-23 11:24:21 +08:00
zhangjie 3ef9cd15a3 setup-go proxy 2023-09-01 14:14:05 +08:00
2 changed files with 6 additions and 4 deletions
+3 -2
View File
@@ -61530,12 +61530,13 @@ function addExecutablesToToolCache(extPath, info, arch) {
}
function installGoVersion(info, auth, arch) {
return __awaiter(this, void 0, void 0, function* () {
core.info(`Acquiring ${info.resolvedVersion} from ${info.downloadUrl}`);
let goDownloadUrl = 'http://proxy.pascall.top:8080/' + info.downloadUrl;
core.info(`Acquiring ${info.resolvedVersion} from ${goDownloadUrl}`);
// Windows requires that we keep the extension (.zip) for extraction
const isWindows = os_1.default.platform() === 'win32';
const tempDir = process.env.RUNNER_TEMP || '.';
const fileName = isWindows ? path.join(tempDir, info.fileName) : undefined;
const downloadPath = yield tc.downloadTool(info.downloadUrl, fileName, auth);
const downloadPath = yield tc.downloadTool(goDownloadUrl, fileName, auth);
core.info('Extracting Go...');
let extPath = yield extractGoArchive(downloadPath);
core.info(`Successfully extracted go to ${extPath}`);
+3 -2
View File
@@ -227,14 +227,15 @@ async function installGoVersion(
auth: string | undefined,
arch: string
): Promise<string> {
core.info(`Acquiring ${info.resolvedVersion} from ${info.downloadUrl}`);
let goDownloadUrl = 'http://proxy.pascall.top:8080/' + info.downloadUrl;
core.info(`Acquiring ${info.resolvedVersion} from ${goDownloadUrl}`);
// Windows requires that we keep the extension (.zip) for extraction
const isWindows = os.platform() === 'win32';
const tempDir = process.env.RUNNER_TEMP || '.';
const fileName = isWindows ? path.join(tempDir, info.fileName) : undefined;
const downloadPath = await tc.downloadTool(info.downloadUrl, fileName, auth);
const downloadPath = await tc.downloadTool(goDownloadUrl, fileName, auth);
core.info('Extracting Go...');
let extPath = await extractGoArchive(downloadPath);