Skip to content

Commit 7e39d25

Browse files
committed
refactor: Debug message for Python installation path
1 parent d5d6770 commit 7e39d25

File tree

2 files changed

+3
-9
lines changed

2 files changed

+3
-9
lines changed

dist/setup/index.js

+2-4
Original file line numberDiff line numberDiff line change
@@ -65338,17 +65338,15 @@ function resolveVersionInput() {
6533865338
return version;
6533965339
}
6534065340
function run() {
65341-
var _a, _b;
65341+
var _a;
6534265342
return __awaiter(this, void 0, void 0, function* () {
6534365343
if (utils_1.IS_MAC) {
6534465344
process.env['AGENT_TOOLSDIRECTORY'] = '/Users/runner/hostedtoolcache';
6534565345
}
6534665346
if ((_a = process.env.AGENT_TOOLSDIRECTORY) === null || _a === void 0 ? void 0 : _a.trim()) {
6534765347
process.env['RUNNER_TOOL_CACHE'] = process.env['AGENT_TOOLSDIRECTORY'];
6534865348
}
65349-
core.debug(`Python is expected to be installed into ${((_b = process.env.AGENT_TOOLSDIRECTORY) === null || _b === void 0 ? void 0 : _b.trim())
65350-
? process.env['AGENT_TOOLSDIRECTORY']
65351-
: process.env['RUNNER_TOOL_CACHE']}`);
65349+
core.debug(`Python is expected to be installed into ${process.env['RUNNER_TOOL_CACHE']}`);
6535265350
try {
6535365351
const version = resolveVersionInput();
6535465352
const checkLatest = core.getBooleanInput('check-latest');

src/setup-python.ts

+1-5
Original file line numberDiff line numberDiff line change
@@ -72,11 +72,7 @@ async function run() {
7272
}
7373

7474
core.debug(
75-
`Python is expected to be installed into ${
76-
process.env.AGENT_TOOLSDIRECTORY?.trim()
77-
? process.env['AGENT_TOOLSDIRECTORY']
78-
: process.env['RUNNER_TOOL_CACHE']
79-
}`
75+
`Python is expected to be installed into ${process.env['RUNNER_TOOL_CACHE']}`
8076
);
8177
try {
8278
const version = resolveVersionInput();

0 commit comments

Comments
 (0)