mirror of
https://github.com/actions/setup-python.git
synced 2024-11-29 04:15:25 +01:00
refactor: Debug message for Python installation path
This commit is contained in:
parent
d5d67707d2
commit
7e39d25e3f
2 changed files with 3 additions and 9 deletions
6
dist/setup/index.js
vendored
6
dist/setup/index.js
vendored
|
@ -65338,7 +65338,7 @@ function resolveVersionInput() {
|
||||||
return version;
|
return version;
|
||||||
}
|
}
|
||||||
function run() {
|
function run() {
|
||||||
var _a, _b;
|
var _a;
|
||||||
return __awaiter(this, void 0, void 0, function* () {
|
return __awaiter(this, void 0, void 0, function* () {
|
||||||
if (utils_1.IS_MAC) {
|
if (utils_1.IS_MAC) {
|
||||||
process.env['AGENT_TOOLSDIRECTORY'] = '/Users/runner/hostedtoolcache';
|
process.env['AGENT_TOOLSDIRECTORY'] = '/Users/runner/hostedtoolcache';
|
||||||
|
@ -65346,9 +65346,7 @@ function run() {
|
||||||
if ((_a = process.env.AGENT_TOOLSDIRECTORY) === null || _a === void 0 ? void 0 : _a.trim()) {
|
if ((_a = process.env.AGENT_TOOLSDIRECTORY) === null || _a === void 0 ? void 0 : _a.trim()) {
|
||||||
process.env['RUNNER_TOOL_CACHE'] = process.env['AGENT_TOOLSDIRECTORY'];
|
process.env['RUNNER_TOOL_CACHE'] = process.env['AGENT_TOOLSDIRECTORY'];
|
||||||
}
|
}
|
||||||
core.debug(`Python is expected to be installed into ${((_b = process.env.AGENT_TOOLSDIRECTORY) === null || _b === void 0 ? void 0 : _b.trim())
|
core.debug(`Python is expected to be installed into ${process.env['RUNNER_TOOL_CACHE']}`);
|
||||||
? process.env['AGENT_TOOLSDIRECTORY']
|
|
||||||
: process.env['RUNNER_TOOL_CACHE']}`);
|
|
||||||
try {
|
try {
|
||||||
const version = resolveVersionInput();
|
const version = resolveVersionInput();
|
||||||
const checkLatest = core.getBooleanInput('check-latest');
|
const checkLatest = core.getBooleanInput('check-latest');
|
||||||
|
|
|
@ -72,11 +72,7 @@ async function run() {
|
||||||
}
|
}
|
||||||
|
|
||||||
core.debug(
|
core.debug(
|
||||||
`Python is expected to be installed into ${
|
`Python is expected to be installed into ${process.env['RUNNER_TOOL_CACHE']}`
|
||||||
process.env.AGENT_TOOLSDIRECTORY?.trim()
|
|
||||||
? process.env['AGENT_TOOLSDIRECTORY']
|
|
||||||
: process.env['RUNNER_TOOL_CACHE']
|
|
||||||
}`
|
|
||||||
);
|
);
|
||||||
try {
|
try {
|
||||||
const version = resolveVersionInput();
|
const version = resolveVersionInput();
|
||||||
|
|
Loading…
Reference in a new issue