mirror of
				https://github.com/astral-sh/setup-uv.git
				synced 2025-11-04 08:56:49 +00:00 
			
		
		
		
	Add more debug logs (#297)
	
		
			
	
		
	
	
		
	
		
			Some checks failed
		
		
	
	
		
			
				
	
				Release Drafter / ✏️ Draft release (push) Failing after 13s
				
			
		
			
				
	
				test-cache / test-setup-cache (false, ubuntu-latest) (push) Successful in 59s
				
			
		
			
				
	
				test-cache / test-setup-cache (true, ubuntu-latest) (push) Successful in 45s
				
			
		
			
				
	
				CodeQL / Analyze (TypeScript) (push) Failing after 2m21s
				
			
		
			
				
	
				test-cache / test-setup-cache-dependency-glob (push) Failing after 4s
				
			
		
			
				
	
				test-cache / test-restore-cache-dependency-glob (push) Has been skipped
				
			
		
			
				
	
				test-cache / test-no-python-version (push) Failing after 6s
				
			
		
			
				
	
				Check dist/ / check-dist (push) Successful in 2m37s
				
			
		
			
				
	
				test / test-default-version (ubuntu-latest) (push) Failing after 6s
				
			
		
			
				
	
				test / test-specific-version (0.3) (push) Failing after 4s
				
			
		
			
				
	
				test-cache / test-setup-cache-requirements-txt (push) Successful in 49s
				
			
		
			
				
	
				test / test-specific-version (0.3.0) (push) Failing after 5s
				
			
		
			
				
	
				test / test-specific-version (0.3.x) (push) Failing after 4s
				
			
		
			
				
	
				test / test-specific-version (>=0.3.0) (push) Failing after 3s
				
			
		
			
				
	
				test / test-semver-range (push) Failing after 4s
				
			
		
			
				
	
				test / test-pyproject-file-version (push) Failing after 3s
				
			
		
			
				
	
				test / test-uv-file-version (push) Failing after 4s
				
			
		
			
				
	
				test / test-checksum (4d9279ad5ca596b1e2d703901d508430eb07564dc4d8837de9e2fca9c90f8ecd, ubuntu-latest) (push) Failing after 3s
				
			
		
			
				
	
				test / test-with-explicit-token (push) Failing after 4s
				
			
		
			
				
	
				test / test-specific-version (0.3.2) (push) Successful in 46s
				
			
		
			
				
	
				test / test-uvx (push) Failing after 5s
				
			
		
			
				
	
				test / test-python-version (macos-latest) (push) Failing after 5s
				
			
		
			
				
	
				test / test-python-version (ubuntu-latest) (push) Failing after 3s
				
			
		
			
				
	
				test / test-python-version (windows-latest) (push) Failing after 4s
				
			
		
			
				
	
				test / test-malformed-pyproject-file-fallback (push) Failing after 4s
				
			
		
			
				
	
				test / test-musl (push) Failing after 6s
				
			
		
			
				
	
				test / test-tool-install (ubuntu-latest) (push) Successful in 1m4s
				
			
		
			
				
	
				test / build (push) Successful in 3m19s
				
			
		
			
				
	
				test-cache / test-setup-cache (auto, ubuntu-latest) (push) Failing after 6m47s
				
			
		
			
				
	
				test-cache-windows / test-setup-cache (push) Has been cancelled
				
			
		
			
				
	
				test-cache / test-setup-cache (auto, selfhosted-ubuntu-arm64) (push) Has been cancelled
				
			
		
			
				
	
				test-cache / test-setup-cache (false, selfhosted-ubuntu-arm64) (push) Has been cancelled
				
			
		
			
				
	
				test-cache / test-setup-cache (true, selfhosted-ubuntu-arm64) (push) Has been cancelled
				
			
		
			
				
	
				test-cache / test-setup-cache-local (push) Has been cancelled
				
			
		
			
				
	
				test-cache / test-tilde-expansion-cache-local-path (push) Has been cancelled
				
			
		
			
				
	
				test-cache / test-tilde-expansion-cache-dependency-glob (push) Has been cancelled
				
			
		
			
				
	
				test-windows / test-default-version (push) Has been cancelled
				
			
		
			
				
	
				test / test-default-version (macos-14) (push) Has been cancelled
				
			
		
			
				
	
				test / test-default-version (macos-latest) (push) Has been cancelled
				
			
		
			
				
	
				test / test-checksum (a70cbfbf3bb5c08b2f84963b4f12c94e08fbb2468ba418a3bfe1066fbe9e7218, macos-latest) (push) Has been cancelled
				
			
		
			
				
	
				test / test-tool-install (macos-14) (push) Has been cancelled
				
			
		
			
				
	
				test / test-tool-install (macos-latest) (push) Has been cancelled
				
			
		
			
				
	
				test / test-tool-install (windows-latest) (push) Has been cancelled
				
			
		
			
				
	
				test / test-tilde-expansion-tool-dirs (push) Has been cancelled
				
			
		
			
				
	
				test-cache-windows / test-restore-cache (push) Has been cancelled
				
			
		
			
				
	
				test-cache / test-restore-cache (auto, selfhosted-ubuntu-arm64) (push) Has been cancelled
				
			
		
			
				
	
				test-cache / test-restore-cache (auto, ubuntu-latest) (push) Has been cancelled
				
			
		
			
				
	
				test-cache / test-restore-cache (false, selfhosted-ubuntu-arm64) (push) Has been cancelled
				
			
		
			
				
	
				test-cache / test-restore-cache (false, ubuntu-latest) (push) Has been cancelled
				
			
		
			
				
	
				test-cache / test-restore-cache (true, selfhosted-ubuntu-arm64) (push) Has been cancelled
				
			
		
			
				
	
				test-cache / test-restore-cache (true, ubuntu-latest) (push) Has been cancelled
				
			
		
			
				
	
				test-cache / test-restore-cache-requirements-txt (push) Has been cancelled
				
			
		
			
				
	
				test-cache / test-restore-cache-local (push) Has been cancelled
				
			
		
			
				
	
				test-cache / cleanup-tilde-expansion-tests (push) Has been cancelled
				
			
		
			
				
	
				Update known checksums / build (push) Failing after 13s
				
			
		
		
	
	
				
					
				
			
		
			Some checks failed
		
		
	
	Release Drafter / ✏️ Draft release (push) Failing after 13s
				
			test-cache / test-setup-cache (false, ubuntu-latest) (push) Successful in 59s
				
			test-cache / test-setup-cache (true, ubuntu-latest) (push) Successful in 45s
				
			CodeQL / Analyze (TypeScript) (push) Failing after 2m21s
				
			test-cache / test-setup-cache-dependency-glob (push) Failing after 4s
				
			test-cache / test-restore-cache-dependency-glob (push) Has been skipped
				
			test-cache / test-no-python-version (push) Failing after 6s
				
			Check dist/ / check-dist (push) Successful in 2m37s
				
			test / test-default-version (ubuntu-latest) (push) Failing after 6s
				
			test / test-specific-version (0.3) (push) Failing after 4s
				
			test-cache / test-setup-cache-requirements-txt (push) Successful in 49s
				
			test / test-specific-version (0.3.0) (push) Failing after 5s
				
			test / test-specific-version (0.3.x) (push) Failing after 4s
				
			test / test-specific-version (>=0.3.0) (push) Failing after 3s
				
			test / test-semver-range (push) Failing after 4s
				
			test / test-pyproject-file-version (push) Failing after 3s
				
			test / test-uv-file-version (push) Failing after 4s
				
			test / test-checksum (4d9279ad5ca596b1e2d703901d508430eb07564dc4d8837de9e2fca9c90f8ecd, ubuntu-latest) (push) Failing after 3s
				
			test / test-with-explicit-token (push) Failing after 4s
				
			test / test-specific-version (0.3.2) (push) Successful in 46s
				
			test / test-uvx (push) Failing after 5s
				
			test / test-python-version (macos-latest) (push) Failing after 5s
				
			test / test-python-version (ubuntu-latest) (push) Failing after 3s
				
			test / test-python-version (windows-latest) (push) Failing after 4s
				
			test / test-malformed-pyproject-file-fallback (push) Failing after 4s
				
			test / test-musl (push) Failing after 6s
				
			test / test-tool-install (ubuntu-latest) (push) Successful in 1m4s
				
			test / build (push) Successful in 3m19s
				
			test-cache / test-setup-cache (auto, ubuntu-latest) (push) Failing after 6m47s
				
			test-cache-windows / test-setup-cache (push) Has been cancelled
				
			test-cache / test-setup-cache (auto, selfhosted-ubuntu-arm64) (push) Has been cancelled
				
			test-cache / test-setup-cache (false, selfhosted-ubuntu-arm64) (push) Has been cancelled
				
			test-cache / test-setup-cache (true, selfhosted-ubuntu-arm64) (push) Has been cancelled
				
			test-cache / test-setup-cache-local (push) Has been cancelled
				
			test-cache / test-tilde-expansion-cache-local-path (push) Has been cancelled
				
			test-cache / test-tilde-expansion-cache-dependency-glob (push) Has been cancelled
				
			test-windows / test-default-version (push) Has been cancelled
				
			test / test-default-version (macos-14) (push) Has been cancelled
				
			test / test-default-version (macos-latest) (push) Has been cancelled
				
			test / test-checksum (a70cbfbf3bb5c08b2f84963b4f12c94e08fbb2468ba418a3bfe1066fbe9e7218, macos-latest) (push) Has been cancelled
				
			test / test-tool-install (macos-14) (push) Has been cancelled
				
			test / test-tool-install (macos-latest) (push) Has been cancelled
				
			test / test-tool-install (windows-latest) (push) Has been cancelled
				
			test / test-tilde-expansion-tool-dirs (push) Has been cancelled
				
			test-cache-windows / test-restore-cache (push) Has been cancelled
				
			test-cache / test-restore-cache (auto, selfhosted-ubuntu-arm64) (push) Has been cancelled
				
			test-cache / test-restore-cache (auto, ubuntu-latest) (push) Has been cancelled
				
			test-cache / test-restore-cache (false, selfhosted-ubuntu-arm64) (push) Has been cancelled
				
			test-cache / test-restore-cache (false, ubuntu-latest) (push) Has been cancelled
				
			test-cache / test-restore-cache (true, selfhosted-ubuntu-arm64) (push) Has been cancelled
				
			test-cache / test-restore-cache (true, ubuntu-latest) (push) Has been cancelled
				
			test-cache / test-restore-cache-requirements-txt (push) Has been cancelled
				
			test-cache / test-restore-cache-local (push) Has been cancelled
				
			test-cache / cleanup-tilde-expansion-tests (push) Has been cancelled
				
			Update known checksums / build (push) Failing after 13s
				
			This commit is contained in:
		
				
					committed by
					
						
						GitHub
					
				
			
			
				
	
			
			
			
						parent
						
							a4fbf7b827
						
					
				
				
					commit
					1edb52594c
				
			
							
								
								
									
										5
									
								
								dist/setup/index.js
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										5
									
								
								dist/setup/index.js
									
									
									
										generated
									
									
										vendored
									
									
								
							@@ -95208,6 +95208,7 @@ async function downloadVersion(platform, arch, version, checkSum, githubToken) {
 | 
				
			|||||||
    return { version: resolvedVersion, cachedToolDir };
 | 
					    return { version: resolvedVersion, cachedToolDir };
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
async function resolveVersion(versionInput, githubToken) {
 | 
					async function resolveVersion(versionInput, githubToken) {
 | 
				
			||||||
 | 
					    core.debug(`Resolving version: ${versionInput}`);
 | 
				
			||||||
    const version = versionInput === "latest"
 | 
					    const version = versionInput === "latest"
 | 
				
			||||||
        ? await getLatestVersion(githubToken)
 | 
					        ? await getLatestVersion(githubToken)
 | 
				
			||||||
        : versionInput;
 | 
					        : versionInput;
 | 
				
			||||||
@@ -95216,6 +95217,7 @@ async function resolveVersion(versionInput, githubToken) {
 | 
				
			|||||||
        return version;
 | 
					        return version;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
    const availableVersions = await getAvailableVersions(githubToken);
 | 
					    const availableVersions = await getAvailableVersions(githubToken);
 | 
				
			||||||
 | 
					    core.debug(`Available versions: ${availableVersions}`);
 | 
				
			||||||
    const resolvedVersion = tc.evaluateVersions(availableVersions, version);
 | 
					    const resolvedVersion = tc.evaluateVersions(availableVersions, version);
 | 
				
			||||||
    if (resolvedVersion === "") {
 | 
					    if (resolvedVersion === "") {
 | 
				
			||||||
        throw new Error(`No version found for ${version}`);
 | 
					        throw new Error(`No version found for ${version}`);
 | 
				
			||||||
@@ -95246,6 +95248,7 @@ async function getReleaseTagNames(octokit) {
 | 
				
			|||||||
    return response.map((release) => release.tag_name);
 | 
					    return response.map((release) => release.tag_name);
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
async function getLatestVersion(githubToken) {
 | 
					async function getLatestVersion(githubToken) {
 | 
				
			||||||
 | 
					    core.debug("Getting latest version...");
 | 
				
			||||||
    const octokit = new PaginatingOctokit({
 | 
					    const octokit = new PaginatingOctokit({
 | 
				
			||||||
        auth: githubToken,
 | 
					        auth: githubToken,
 | 
				
			||||||
    });
 | 
					    });
 | 
				
			||||||
@@ -95266,6 +95269,7 @@ async function getLatestVersion(githubToken) {
 | 
				
			|||||||
    if (!latestRelease) {
 | 
					    if (!latestRelease) {
 | 
				
			||||||
        throw new Error("Could not determine latest release.");
 | 
					        throw new Error("Could not determine latest release.");
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					    core.debug(`Latest version: ${latestRelease.tag_name}`);
 | 
				
			||||||
    return latestRelease.tag_name;
 | 
					    return latestRelease.tag_name;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
async function getLatestRelease(octokit) {
 | 
					async function getLatestRelease(octokit) {
 | 
				
			||||||
@@ -95818,6 +95822,7 @@ const node_fs_1 = __importDefault(__nccwpck_require__(3024));
 | 
				
			|||||||
const core = __importStar(__nccwpck_require__(7484));
 | 
					const core = __importStar(__nccwpck_require__(7484));
 | 
				
			||||||
const toml = __importStar(__nccwpck_require__(7106));
 | 
					const toml = __importStar(__nccwpck_require__(7106));
 | 
				
			||||||
function getUvVersionFromConfigFile(filePath) {
 | 
					function getUvVersionFromConfigFile(filePath) {
 | 
				
			||||||
 | 
					    core.debug(`Trying to find required-version for uv in: ${filePath}`);
 | 
				
			||||||
    if (!node_fs_1.default.existsSync(filePath)) {
 | 
					    if (!node_fs_1.default.existsSync(filePath)) {
 | 
				
			||||||
        core.warning(`Could not find file: ${filePath}`);
 | 
					        core.warning(`Could not find file: ${filePath}`);
 | 
				
			||||||
        return undefined;
 | 
					        return undefined;
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -78,6 +78,7 @@ export async function resolveVersion(
 | 
				
			|||||||
  versionInput: string,
 | 
					  versionInput: string,
 | 
				
			||||||
  githubToken: string,
 | 
					  githubToken: string,
 | 
				
			||||||
): Promise<string> {
 | 
					): Promise<string> {
 | 
				
			||||||
 | 
					  core.debug(`Resolving version: ${versionInput}`);
 | 
				
			||||||
  const version =
 | 
					  const version =
 | 
				
			||||||
    versionInput === "latest"
 | 
					    versionInput === "latest"
 | 
				
			||||||
      ? await getLatestVersion(githubToken)
 | 
					      ? await getLatestVersion(githubToken)
 | 
				
			||||||
@@ -87,6 +88,7 @@ export async function resolveVersion(
 | 
				
			|||||||
    return version;
 | 
					    return version;
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
  const availableVersions = await getAvailableVersions(githubToken);
 | 
					  const availableVersions = await getAvailableVersions(githubToken);
 | 
				
			||||||
 | 
					  core.debug(`Available versions: ${availableVersions}`);
 | 
				
			||||||
  const resolvedVersion = tc.evaluateVersions(availableVersions, version);
 | 
					  const resolvedVersion = tc.evaluateVersions(availableVersions, version);
 | 
				
			||||||
  if (resolvedVersion === "") {
 | 
					  if (resolvedVersion === "") {
 | 
				
			||||||
    throw new Error(`No version found for ${version}`);
 | 
					    throw new Error(`No version found for ${version}`);
 | 
				
			||||||
@@ -123,6 +125,7 @@ async function getReleaseTagNames(
 | 
				
			|||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
async function getLatestVersion(githubToken: string) {
 | 
					async function getLatestVersion(githubToken: string) {
 | 
				
			||||||
 | 
					  core.debug("Getting latest version...");
 | 
				
			||||||
  const octokit = new PaginatingOctokit({
 | 
					  const octokit = new PaginatingOctokit({
 | 
				
			||||||
    auth: githubToken,
 | 
					    auth: githubToken,
 | 
				
			||||||
  });
 | 
					  });
 | 
				
			||||||
@@ -145,6 +148,7 @@ async function getLatestVersion(githubToken: string) {
 | 
				
			|||||||
  if (!latestRelease) {
 | 
					  if (!latestRelease) {
 | 
				
			||||||
    throw new Error("Could not determine latest release.");
 | 
					    throw new Error("Could not determine latest release.");
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
					  core.debug(`Latest version: ${latestRelease.tag_name}`);
 | 
				
			||||||
  return latestRelease.tag_name;
 | 
					  return latestRelease.tag_name;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -5,6 +5,7 @@ import * as toml from "smol-toml";
 | 
				
			|||||||
export function getUvVersionFromConfigFile(
 | 
					export function getUvVersionFromConfigFile(
 | 
				
			||||||
  filePath: string,
 | 
					  filePath: string,
 | 
				
			||||||
): string | undefined {
 | 
					): string | undefined {
 | 
				
			||||||
 | 
					  core.debug(`Trying to find required-version for uv in: ${filePath}`);
 | 
				
			||||||
  if (!fs.existsSync(filePath)) {
 | 
					  if (!fs.existsSync(filePath)) {
 | 
				
			||||||
    core.warning(`Could not find file: ${filePath}`);
 | 
					    core.warning(`Could not find file: ${filePath}`);
 | 
				
			||||||
    return undefined;
 | 
					    return undefined;
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user