|
|
@ -4,7 +4,7 @@ import * as installer from './installer';
|
|
|
|
import * as semver from 'semver';
|
|
|
|
import * as semver from 'semver';
|
|
|
|
import path from 'path';
|
|
|
|
import path from 'path';
|
|
|
|
import {restoreCache} from './cache-restore';
|
|
|
|
import {restoreCache} from './cache-restore';
|
|
|
|
import {isGhes, isCacheFeatureAvailable} from './cache-utils';
|
|
|
|
import {isCacheFeatureAvailable} from './cache-utils';
|
|
|
|
import cp from 'child_process';
|
|
|
|
import cp from 'child_process';
|
|
|
|
import fs from 'fs';
|
|
|
|
import fs from 'fs';
|
|
|
|
import os from 'os';
|
|
|
|
import os from 'os';
|
|
|
@ -150,7 +150,7 @@ function resolveVersionInput(): string {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
async function resolveStableVersionInput(
|
|
|
|
async function resolveStableVersionInput(
|
|
|
|
versionSpec: string,
|
|
|
|
versionSpec: installer.StableAliasType,
|
|
|
|
auth: string | undefined,
|
|
|
|
auth: string | undefined,
|
|
|
|
arch = os.arch()
|
|
|
|
arch = os.arch()
|
|
|
|
): Promise<string> {
|
|
|
|
): Promise<string> {
|
|
|
|