From 0cb5f9e34dc34dfc7861c785bf19a47ccaa3d455 Mon Sep 17 00:00:00 2001
From: Rhys Arkins <rhys@arkins.net>
Date: Mon, 11 May 2020 18:09:13 +0200
Subject: [PATCH] refactor: poetryInstall

---
 lib/manager/poetry/artifacts.ts | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/lib/manager/poetry/artifacts.ts b/lib/manager/poetry/artifacts.ts
index 20b6010e77..9c6c87c508 100644
--- a/lib/manager/poetry/artifacts.ts
+++ b/lib/manager/poetry/artifacts.ts
@@ -75,13 +75,14 @@ export async function updateArtifacts({
     }
     const tagConstraint = getPythonConstraint(existingLockFileContent, config);
     const poetryRequirement = config.compatibility?.poetry || 'poetry';
+    const poetryInstall = 'pip install ' + quote(poetryRequirement);
     const execOptions: ExecOptions = {
       cwdFile: packageFileName,
       docker: {
         image: 'renovate/python',
         tagConstraint,
         tagScheme: 'poetry',
-        preCommands: ['pip install ' + quote(poetryRequirement)],
+        preCommands: [poetryInstall],
       },
     };
     await exec(cmd, execOptions);
-- 
GitLab