diff --git a/lib/poetry.js b/lib/poetry.js index 9bf0424c..108f90dd 100644 --- a/lib/poetry.js +++ b/lib/poetry.js @@ -50,7 +50,7 @@ function pyprojectTomlToRequirements() { if (requirementsContents.match(editableFlag)) { this.serverless.cli.log( - 'The generated file contains -e lines, removing them...' + 'The generated file contains -e flags, removing them...' ); fse.writeFileSync( sourceRequirements, @@ -61,7 +61,8 @@ function pyprojectTomlToRequirements() { fse.ensureDirSync(path.join(this.servicePath, '.serverless')); fse.moveSync( sourceRequirements, - path.join(this.servicePath, '.serverless', 'requirements.txt') + path.join(this.servicePath, '.serverless', 'requirements.txt'), + { "overwrite": true } ); }