@@ -65338,14 +65338,17 @@ function resolveVersionInput() {
65338
65338
return version;
65339
65339
}
65340
65340
function run() {
65341
- var _a;
65341
+ var _a, _b ;
65342
65342
return __awaiter(this, void 0, void 0, function* () {
65343
- // When setting AGENT_TOOLSDIRECTORY, the actions/tool-cache function find
65344
- // is not able to find the files cached by actions/python-version.
65343
+ if (utils_1.IS_MAC) {
65344
+ process.env['AGENT_TOOLSDIRECTORY'] = '/Users/runner/hostedtoolcache';
65345
+ }
65345
65346
if ((_a = process.env.AGENT_TOOLSDIRECTORY) === null || _a === void 0 ? void 0 : _a.trim()) {
65346
65347
process.env['RUNNER_TOOL_CACHE'] = process.env['AGENT_TOOLSDIRECTORY'];
65347
65348
}
65348
- core.debug(`Python is expected to be installed into RUNNER_TOOL_CACHE=${process.env['RUNNER_TOOL_CACHE']}`);
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
65352
try {
65350
65353
const version = resolveVersionInput();
65351
65354
const checkLatest = core.getBooleanInput('check-latest');
@@ -65421,7 +65424,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
65421
65424
return (mod && mod.__esModule) ? mod : { "default": mod };
65422
65425
};
65423
65426
Object.defineProperty(exports, "__esModule", ({ value: true }));
65424
- exports.logWarning = exports.getLinuxOSReleaseInfo = exports.isCacheFeatureAvailable = exports.isGhes = exports.validatePythonVersionFormatForPyPy = exports.writeExactPyPyVersionFile = exports.readExactPyPyVersionFile = exports.getPyPyVersionFromPath = exports.isNightlyKeyword = exports.validateVersion = exports.createSymlinkInFolder = exports.WINDOWS_PLATFORMS = exports.WINDOWS_ARCHS = exports.IS_LINUX = exports.IS_WINDOWS = void 0;
65427
+ exports.logWarning = exports.getLinuxOSReleaseInfo = exports.isCacheFeatureAvailable = exports.isGhes = exports.validatePythonVersionFormatForPyPy = exports.writeExactPyPyVersionFile = exports.readExactPyPyVersionFile = exports.getPyPyVersionFromPath = exports.isNightlyKeyword = exports.validateVersion = exports.createSymlinkInFolder = exports.WINDOWS_PLATFORMS = exports.WINDOWS_ARCHS = exports.IS_MAC = exports. IS_LINUX = exports.IS_WINDOWS = void 0;
65425
65428
const cache = __importStar(__nccwpck_require__(7799));
65426
65429
const core = __importStar(__nccwpck_require__(2186));
65427
65430
const fs_1 = __importDefault(__nccwpck_require__(7147));
@@ -65762,4 +65765,4 @@ module.exports = JSON.parse('["ac","com.ac","edu.ac","gov.ac","net.ac","mil.ac",
65762
65765
/******/ module.exports = __webpack_exports__;
65763
65766
/******/
65764
65767
/******/ })()
65765
- ;
65768
+ ;
0 commit comments