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 tc = __importStar(__nccwpck_require__(7784));
|
||||
const exec = __importStar(__nccwpck_require__(1514));
|
||||
const io = __importStar(__nccwpck_require__(7436));
|
||||
const path = __importStar(__nccwpck_require__(1017));
|
||||
const checksum_1 = __nccwpck_require__(4622);
|
||||
const utils_1 = __nccwpck_require__(239);
|
||||
@ -85410,9 +85409,7 @@ function downloadLatest(platform, arch, checkSum, githubToken) {
|
||||
downloadUrl += '.tar.gz';
|
||||
}
|
||||
core.info(`Downloading uv from "${downloadUrl}" ...`);
|
||||
const downloadDir = path.join(process.env['RUNNER_TEMP'] || '', 'uv-download');
|
||||
yield io.mkdirP(downloadDir);
|
||||
const downloadPath = yield tc.downloadTool(downloadUrl, downloadDir, githubToken);
|
||||
const downloadPath = yield tc.downloadTool(downloadUrl, undefined, githubToken);
|
||||
let uvExecutablePath;
|
||||
let extracted;
|
||||
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());
|
||||
});
|
||||
};
|
||||
var __importDefault = (this && this.__importDefault) || function (mod) {
|
||||
return (mod && mod.__esModule) ? mod : { "default": mod };
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
||||
exports.downloadVersion = exports.tryGetFromToolCache = void 0;
|
||||
const core = __importStar(__nccwpck_require__(2186));
|
||||
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 checksum_1 = __nccwpck_require__(4622);
|
||||
function tryGetFromToolCache(arch, version) {
|
||||
@ -85520,9 +85512,7 @@ function downloadVersion(platform, arch, version, checkSum, githubToken) {
|
||||
downloadUrl += '.tar.gz';
|
||||
}
|
||||
core.info(`Downloading uv from "${downloadUrl}" ...`);
|
||||
const downloadDir = path_1.default.join(process.env['RUNNER_TEMP'] || '', 'uv-download');
|
||||
yield io.mkdirP(downloadDir);
|
||||
const downloadPath = yield tc.downloadTool(downloadUrl, downloadDir, githubToken);
|
||||
const downloadPath = yield tc.downloadTool(downloadUrl, undefined, githubToken);
|
||||
yield (0, checksum_1.validateChecksum)(checkSum, downloadPath, arch, platform, version);
|
||||
let extractedDir;
|
||||
if (platform === 'pc-windows-msvc') {
|
||||
|
@ -1,6 +1,5 @@
|
||||
import * as core from '@actions/core'
|
||||
import * as tc from '@actions/tool-cache'
|
||||
import path from 'path'
|
||||
import {OWNER, REPO, TOOL_CACHE_NAME} from '../utils/utils'
|
||||
import {Architecture, Platform} from '../utils/platforms'
|
||||
import {validateChecksum} from './checksum/checksum'
|
||||
|
Loading…
x
Reference in New Issue
Block a user