@@ -64573,9 +64573,12 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
6457364573};
6457464574Object.defineProperty(exports, "__esModule", ({ value: true }));
6457564575const glob = __importStar(__nccwpck_require__(8090));
64576+ const io = __importStar(__nccwpck_require__(7436));
6457664577const path = __importStar(__nccwpck_require__(1017));
6457764578const exec = __importStar(__nccwpck_require__(1514));
64579+ const core = __importStar(__nccwpck_require__(2186));
6457864580const cache_distributor_1 = __importDefault(__nccwpck_require__(8953));
64581+ const utils_1 = __nccwpck_require__(1314);
6457964582class PoetryCache extends cache_distributor_1.default {
6458064583 constructor(pythonVersion, patterns = '**/poetry.lock') {
6458164584 super('poetry', patterns);
@@ -64591,6 +64594,17 @@ class PoetryCache extends cache_distributor_1.default {
6459164594 if (poetryConfig['virtualenvs.in-project'] === true) {
6459264595 paths.push(path.join(process.cwd(), '.venv'));
6459364596 }
64597+ const pythonLocation = yield io.which('python');
64598+ if (pythonLocation) {
64599+ core.debug(`pythonLocation is ${pythonLocation}`);
64600+ const { exitCode, stderr } = yield exec.getExecOutput(`poetry env use ${pythonLocation}`, undefined, { ignoreReturnCode: true });
64601+ if (exitCode) {
64602+ utils_1.logWarning(stderr);
64603+ }
64604+ }
64605+ else {
64606+ utils_1.logWarning('python binaries were not found in PATH');
64607+ }
6459464608 return paths;
6459564609 });
6459664610 }
@@ -65241,7 +65255,6 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
6524165255 return (mod && mod.__esModule) ? mod : { "default": mod };
6524265256};
6524365257Object.defineProperty(exports, "__esModule", ({ value: true }));
65244- exports.logWarning = void 0;
6524565258const core = __importStar(__nccwpck_require__(2186));
6524665259const finder = __importStar(__nccwpck_require__(9996));
6524765260const finderPyPy = __importStar(__nccwpck_require__(4003));
@@ -65277,14 +65290,14 @@ function resolveVersionInput() {
6527765290 core.info(`Resolved ${versionFile} as ${version}`);
6527865291 return version;
6527965292 }
65280- logWarning("Neither 'python-version' nor 'python-version-file' inputs were supplied. Attempting to find '.python-version' file.");
65293+ utils_1. logWarning("Neither 'python-version' nor 'python-version-file' inputs were supplied. Attempting to find '.python-version' file.");
6528165294 versionFile = '.python-version';
6528265295 if (fs_1.default.existsSync(versionFile)) {
6528365296 version = fs_1.default.readFileSync(versionFile, 'utf8');
6528465297 core.info(`Resolved ${versionFile} as ${version}`);
6528565298 return version;
6528665299 }
65287- logWarning(`${versionFile} doesn't exist.`);
65300+ utils_1. logWarning(`${versionFile} doesn't exist.`);
6528865301 return version;
6528965302}
6529065303function run() {
@@ -65332,11 +65345,6 @@ function run() {
6533265345 }
6533365346 });
6533465347}
65335- function logWarning(message) {
65336- const warningPrefix = '[warning]';
65337- core.info(`${warningPrefix}${message}`);
65338- }
65339- exports.logWarning = logWarning;
6534065348run();
6534165349
6534265350
@@ -65379,7 +65387,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
6537965387 return (mod && mod.__esModule) ? mod : { "default": mod };
6538065388};
6538165389Object.defineProperty(exports, "__esModule", ({ value: true }));
65382- 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;
65390+ 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;
6538365391const cache = __importStar(__nccwpck_require__(7799));
6538465392const core = __importStar(__nccwpck_require__(2186));
6538565393const fs_1 = __importDefault(__nccwpck_require__(7147));
@@ -65480,6 +65488,11 @@ function getLinuxOSReleaseInfo() {
6548065488 });
6548165489}
6548265490exports.getLinuxOSReleaseInfo = getLinuxOSReleaseInfo;
65491+ function logWarning(message) {
65492+ const warningPrefix = '[warning]';
65493+ core.info(`${warningPrefix}${message}`);
65494+ }
65495+ exports.logWarning = logWarning;
6548365496
6548465497
6548565498/***/ }),
0 commit comments