mirror of
https://github.com/actions/setup-python.git
synced 2025-04-24 07:22:14 +00:00
poetry: Simplify virtualenvs.in-project
boolean check
This commit is contained in:
parent
95696f7028
commit
bb9c5ac469
2 changed files with 2 additions and 2 deletions
2
dist/setup/index.js
vendored
2
dist/setup/index.js
vendored
|
@ -66124,7 +66124,7 @@ class PoetryCache extends cache_distributor_1.default {
|
||||||
const cacheDir = poetryConfig['cache-dir'];
|
const cacheDir = poetryConfig['cache-dir'];
|
||||||
const virtualenvsPath = poetryConfig['virtualenvs.path'].replace('{cache-dir}', cacheDir);
|
const virtualenvsPath = poetryConfig['virtualenvs.path'].replace('{cache-dir}', cacheDir);
|
||||||
paths.add(virtualenvsPath);
|
paths.add(virtualenvsPath);
|
||||||
if (poetryConfig['virtualenvs.in-project'] === true) {
|
if (poetryConfig['virtualenvs.in-project']) {
|
||||||
paths.add(path.join(basedir, '.venv'));
|
paths.add(path.join(basedir, '.venv'));
|
||||||
}
|
}
|
||||||
if (pythonLocation) {
|
if (pythonLocation) {
|
||||||
|
|
|
@ -41,7 +41,7 @@ class PoetryCache extends CacheDistributor {
|
||||||
|
|
||||||
paths.add(virtualenvsPath);
|
paths.add(virtualenvsPath);
|
||||||
|
|
||||||
if (poetryConfig['virtualenvs.in-project'] === true) {
|
if (poetryConfig['virtualenvs.in-project']) {
|
||||||
paths.add(path.join(basedir, '.venv'));
|
paths.add(path.join(basedir, '.venv'));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue