8000 Use correct Poetry config when collecting Poetry projects by oranav · Pull Request #447 · actions/setup-python · GitHub
[go: up one dir, main page]

Skip to content
Merged
Prev Previous commit
Next Next commit
poetry: Simplify virtualenvs.in-project boolean check
  • Loading branch information
oranav committed Dec 9, 2022
commit bb9c5ac469fa32ffeb379d753bb9515addc7b2d4
2 changes: 1 addition & 1 deletion dist/setup/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -66124,7 +66124,7 @@ class PoetryCache extends cache_distributor_1.default {
const cacheDir = poetryConfig['cache-dir'];
const virtualenvsPath = poetryConfig['virtualenvs.path'].replace('{cache-dir}', cacheDir);
paths.add(virtualenvsPath);
if (poetryConfig['virtualenvs.in-project'] === true) {
if (poetryConfig['virtualenvs.in-project']) {
paths.add(path.join(basedir, '.venv'));
}
if (pythonLocation) {
Expand Down
2 changes: 1 addition & 1 deletion src/cache-distributions/poetry-cache.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ class PoetryCache extends CacheDistributor {

paths.add(virtualenvsPath);

if (poetryConfig['virtualenvs.in-project'] === true) {
if (poetryConfig['virtualenvs.in-project']) {
paths.add(path.join(basedir, '.venv'));
}

Expand Down
0