From 2233977af90aea431b4ed1ead0027142af584fcb Mon Sep 17 00:00:00 2001 From: Kevin Stillhammer Date: Wed, 18 Sep 2024 20:49:20 +0200 Subject: [PATCH] leave uv.exe in D: --- .github/workflows/test.yml | 7 +------ dist/setup/index.js | 3 +-- src/download/download-latest.ts | 10 ++-------- 3 files changed, 4 insertions(+), 16 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 11e203b..0c35006 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -109,15 +109,10 @@ jobs: runs-on: ${{ matrix.os }} strategy: matrix: - os: - [ - windows-latest, - ] + os: [windows-latest] steps: - uses: actions/checkout@v4 - name: Install default version uses: ./ - - run: mkdir D:\a\_temp\uv-tool-bin-dir - - run: mv C:\hostedtoolcache\windows\uv\0.4.12\x86_64\uv.exe D:\a\_temp\uv-tool-bin-dir\uv.exe - run: uv tool install ruff - run: ruff --version diff --git a/dist/setup/index.js b/dist/setup/index.js index a13cbd0..727d520 100644 --- a/dist/setup/index.js +++ b/dist/setup/index.js @@ -89835,8 +89835,7 @@ function downloadLatest(platform, arch, checkSum, githubToken) { } const version = yield getVersion(uvExecutablePath); yield (0, checksum_1.validateChecksum)(checkSum, downloadPath, arch, platform, version); - const cachedToolDir = yield tc.cacheDir(uvDir, constants_1.TOOL_CACHE_NAME, version, arch); - return { cachedToolDir, version }; + return { cachedToolDir: uvDir, version }; }); } function getVersion(uvExecutablePath) { diff --git a/src/download/download-latest.ts b/src/download/download-latest.ts index f0d923c..2ce286d 100644 --- a/src/download/download-latest.ts +++ b/src/download/download-latest.ts @@ -4,7 +4,7 @@ import * as exec from "@actions/exec"; import * as path from "path"; import { Architecture, Platform } from "../utils/platforms"; import { validateChecksum } from "./checksum/checksum"; -import { OWNER, REPO, TOOL_CACHE_NAME } from "../utils/constants"; +import { OWNER, REPO } from "../utils/constants"; export async function downloadLatest( platform: Platform, @@ -39,14 +39,8 @@ export async function downloadLatest( } const version = await getVersion(uvExecutablePath); await validateChecksum(checkSum, downloadPath, arch, platform, version); - const cachedToolDir = await tc.cacheDir( - uvDir, - TOOL_CACHE_NAME, - version, - arch, - ); - return { cachedToolDir, version }; + return { cachedToolDir: uvDir, version }; } async function getVersion(uvExecutablePath: string): Promise {