Change log level of messages in xcodeVersion

This commit is contained in:
Michael B. Gale
2026-10-29 16:33:54 +00:00
parent 8cafec0756
commit 019a5caccd
4 changed files with 21 additions and 21 deletions

20
lib/entry-points.js generated
View File

@@ -183454,27 +183454,25 @@ function xcodeVersion(logger2) {
throwIfNoEntry: false
});
if (stats === void 0) {
logger2.debug(
`'${XCODE_SELECT_LINK_PATH}' does not exist. Xcode is probably not installed.`
);
logger2.debug(`'${XCODE_SELECT_LINK_PATH}' does not exist.`);
return void 0;
}
if (!stats.isSymbolicLink()) {
logger2.warning(
logger2.debug(
`${XCODE_SELECT_LINK_PATH} exists, but is not a symbolic link.`
);
return void 0;
}
const xcodePath = import_fs.default.readlinkSync(XCODE_SELECT_LINK_PATH);
if (xcodePath === "") {
logger2.warning(
logger2.debug(
`Resolving ${XCODE_SELECT_LINK_PATH} unexpectedly returned nothing.`
);
return void 0;
}
const matchResult = xcodePath.match(XCODE_APP_FILENAME_PATTERN);
if (matchResult?.groups === void 0) {
logger2.warning(
logger2.debug(
`Xcode path '${xcodePath}' does not contain expected pattern.`
);
return void 0;
@@ -183482,14 +183480,12 @@ function xcodeVersion(logger2) {
const majorMinor = matchResult.groups["majorMinor"];
const version = semver6.coerce(majorMinor);
if (version === null) {
logger2.warning(`Couldn't parse '${majorMinor}' as a semantic version.`);
logger2.debug(`Couldn't parse '${majorMinor}' as a semantic version.`);
return void 0;
}
return version;
} catch (err) {
logger2.warning(
`Unable to determine Xcode version: ${getErrorMessage(err)}`
);
logger2.debug(`Unable to determine Xcode version: ${getErrorMessage(err)}`);
return void 0;
}
}
@@ -194027,6 +194023,10 @@ async function checkRunnerSupportsTracedAnalysis(action, config, codeql) {
"Xcode",
xcodeVer
);
} else if (xcodeVer === void 0) {
action.logger.info(
"Unable to determine Xcode version. Assuming it is not installed."
);
}
}