mirror of
https://github.com/astral-sh/setup-uv.git
synced 2025-01-31 22:41:27 +08:00
Remove unused path
This commit is contained in:
parent
07977d064c
commit
e1b0f50f21
14
dist/setup/index.js
generated
vendored
14
dist/setup/index.js
generated
vendored
@ -85395,7 +85395,6 @@ exports.downloadLatest = void 0;
|
|||||||
const core = __importStar(__nccwpck_require__(2186));
|
const core = __importStar(__nccwpck_require__(2186));
|
||||||
const tc = __importStar(__nccwpck_require__(7784));
|
const tc = __importStar(__nccwpck_require__(7784));
|
||||||
const exec = __importStar(__nccwpck_require__(1514));
|
const exec = __importStar(__nccwpck_require__(1514));
|
||||||
const io = __importStar(__nccwpck_require__(7436));
|
|
||||||
const path = __importStar(__nccwpck_require__(1017));
|
const path = __importStar(__nccwpck_require__(1017));
|
||||||
const checksum_1 = __nccwpck_require__(4622);
|
const checksum_1 = __nccwpck_require__(4622);
|
||||||
const utils_1 = __nccwpck_require__(239);
|
const utils_1 = __nccwpck_require__(239);
|
||||||
@ -85410,9 +85409,7 @@ function downloadLatest(platform, arch, checkSum, githubToken) {
|
|||||||
downloadUrl += '.tar.gz';
|
downloadUrl += '.tar.gz';
|
||||||
}
|
}
|
||||||
core.info(`Downloading uv from "${downloadUrl}" ...`);
|
core.info(`Downloading uv from "${downloadUrl}" ...`);
|
||||||
const downloadDir = path.join(process.env['RUNNER_TEMP'] || '', 'uv-download');
|
const downloadPath = yield tc.downloadTool(downloadUrl, undefined, githubToken);
|
||||||
yield io.mkdirP(downloadDir);
|
|
||||||
const downloadPath = yield tc.downloadTool(downloadUrl, downloadDir, githubToken);
|
|
||||||
let uvExecutablePath;
|
let uvExecutablePath;
|
||||||
let extracted;
|
let extracted;
|
||||||
if (platform === 'pc-windows-msvc') {
|
if (platform === 'pc-windows-msvc') {
|
||||||
@ -85491,15 +85488,10 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|||||||
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
||||||
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
||||||
};
|
|
||||||
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
||||||
exports.downloadVersion = exports.tryGetFromToolCache = void 0;
|
exports.downloadVersion = exports.tryGetFromToolCache = void 0;
|
||||||
const core = __importStar(__nccwpck_require__(2186));
|
const core = __importStar(__nccwpck_require__(2186));
|
||||||
const tc = __importStar(__nccwpck_require__(7784));
|
const tc = __importStar(__nccwpck_require__(7784));
|
||||||
const io = __importStar(__nccwpck_require__(7436));
|
|
||||||
const path_1 = __importDefault(__nccwpck_require__(1017));
|
|
||||||
const utils_1 = __nccwpck_require__(239);
|
const utils_1 = __nccwpck_require__(239);
|
||||||
const checksum_1 = __nccwpck_require__(4622);
|
const checksum_1 = __nccwpck_require__(4622);
|
||||||
function tryGetFromToolCache(arch, version) {
|
function tryGetFromToolCache(arch, version) {
|
||||||
@ -85520,9 +85512,7 @@ function downloadVersion(platform, arch, version, checkSum, githubToken) {
|
|||||||
downloadUrl += '.tar.gz';
|
downloadUrl += '.tar.gz';
|
||||||
}
|
}
|
||||||
core.info(`Downloading uv from "${downloadUrl}" ...`);
|
core.info(`Downloading uv from "${downloadUrl}" ...`);
|
||||||
const downloadDir = path_1.default.join(process.env['RUNNER_TEMP'] || '', 'uv-download');
|
const downloadPath = yield tc.downloadTool(downloadUrl, undefined, githubToken);
|
||||||
yield io.mkdirP(downloadDir);
|
|
||||||
const downloadPath = yield tc.downloadTool(downloadUrl, downloadDir, githubToken);
|
|
||||||
yield (0, checksum_1.validateChecksum)(checkSum, downloadPath, arch, platform, version);
|
yield (0, checksum_1.validateChecksum)(checkSum, downloadPath, arch, platform, version);
|
||||||
let extractedDir;
|
let extractedDir;
|
||||||
if (platform === 'pc-windows-msvc') {
|
if (platform === 'pc-windows-msvc') {
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
import * as core from '@actions/core'
|
import * as core from '@actions/core'
|
||||||
import * as tc from '@actions/tool-cache'
|
import * as tc from '@actions/tool-cache'
|
||||||
import path from 'path'
|
|
||||||
import {OWNER, REPO, TOOL_CACHE_NAME} from '../utils/utils'
|
import {OWNER, REPO, TOOL_CACHE_NAME} from '../utils/utils'
|
||||||
import {Architecture, Platform} from '../utils/platforms'
|
import {Architecture, Platform} from '../utils/platforms'
|
||||||
import {validateChecksum} from './checksum/checksum'
|
import {validateChecksum} from './checksum/checksum'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user