mirror of
https://github.com/actions/setup-python.git
synced 2025-04-19 19:33:29 +00:00
npm run release
This commit is contained in:
parent
4f512f8afc
commit
fcd685497a
9
dist/setup/index.js
vendored
9
dist/setup/index.js
vendored
@ -34467,8 +34467,9 @@ const path = __importStar(__webpack_require__(622));
|
|||||||
const os_1 = __importDefault(__webpack_require__(87));
|
const os_1 = __importDefault(__webpack_require__(87));
|
||||||
const cache_distributor_1 = __importDefault(__webpack_require__(435));
|
const cache_distributor_1 = __importDefault(__webpack_require__(435));
|
||||||
class PipCache extends cache_distributor_1.default {
|
class PipCache extends cache_distributor_1.default {
|
||||||
constructor(cacheDependencyPath = '**/requirements.txt') {
|
constructor(pythonVersion, cacheDependencyPath = '**/requirements.txt') {
|
||||||
super('pip', cacheDependencyPath);
|
super('pip', cacheDependencyPath);
|
||||||
|
this.pythonVersion = pythonVersion;
|
||||||
}
|
}
|
||||||
getCacheGlobalDirectories() {
|
getCacheGlobalDirectories() {
|
||||||
return __awaiter(this, void 0, void 0, function* () {
|
return __awaiter(this, void 0, void 0, function* () {
|
||||||
@ -34487,8 +34488,8 @@ class PipCache extends cache_distributor_1.default {
|
|||||||
computeKeys() {
|
computeKeys() {
|
||||||
return __awaiter(this, void 0, void 0, function* () {
|
return __awaiter(this, void 0, void 0, function* () {
|
||||||
const hash = yield glob.hashFiles(this.cacheDependencyPath);
|
const hash = yield glob.hashFiles(this.cacheDependencyPath);
|
||||||
const primaryKey = `${this.CACHE_KEY_PREFIX}-${process.env['RUNNER_OS']}-${this.packageManager}-${hash}`;
|
const primaryKey = `${this.CACHE_KEY_PREFIX}-${process.env['RUNNER_OS']}-python-${this.pythonVersion}-${this.packageManager}-${hash}`;
|
||||||
const restoreKey = `${this.CACHE_KEY_PREFIX}-${process.env['RUNNER_OS']}-${this.packageManager}`;
|
const restoreKey = `${this.CACHE_KEY_PREFIX}-${process.env['RUNNER_OS']}-python-${this.pythonVersion}-${this.packageManager}`;
|
||||||
return {
|
return {
|
||||||
primaryKey,
|
primaryKey,
|
||||||
restoreKey: [restoreKey]
|
restoreKey: [restoreKey]
|
||||||
@ -43888,7 +43889,7 @@ var PackageManagers;
|
|||||||
function getCacheDistributor(packageManager, pythonVersion, cacheDependencyPath) {
|
function getCacheDistributor(packageManager, pythonVersion, cacheDependencyPath) {
|
||||||
switch (packageManager) {
|
switch (packageManager) {
|
||||||
case PackageManagers.Pip:
|
case PackageManagers.Pip:
|
||||||
return new pip_cache_1.default(cacheDependencyPath);
|
return new pip_cache_1.default(pythonVersion, cacheDependencyPath);
|
||||||
case PackageManagers.Pipenv:
|
case PackageManagers.Pipenv:
|
||||||
return new pipenv_cache_1.default(pythonVersion, cacheDependencyPath);
|
return new pipenv_cache_1.default(pythonVersion, cacheDependencyPath);
|
||||||
default:
|
default:
|
||||||
|
Loading…
Reference in New Issue
Block a user