This repository was archived by the owner on Oct 24, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -431,13 +431,13 @@ functions:
431431# ## Copy dependencies instead of linking
432432
433433Before final packaging, a link is created in .serverless folder for python dependencies.
434- If it is not possible to create a symbolic link, dependencies can be copied instead of linked
435- whith the foloowing option :
434+ If it is not possible for the OS to create a symbolic link, dependencies can be copied,
435+ instead of linked, with the following option :
436436
437437` ` ` yaml
438438custom:
439439 pythonRequirements:
440- useFinalCopy: true
440+ useSymlinks: false
441441` ` `
442442
443443# # Manual invocations
Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ class ServerlessPythonRequirements {
5858 pipCmdExtraArgs : [ ] ,
5959 noDeploy : [ ] ,
6060 vendor : '' ,
61- useFinalCopy : false ,
61+ useSymlinks : true ,
6262 } ,
6363 ( this . serverless . service . custom &&
6464 this . serverless . service . custom . pythonRequirements ) ||
Original file line number Diff line number Diff line change @@ -782,7 +782,7 @@ async function installAllRequirements() {
782782 reqsInstalledAt != symlinkPath
783783 ) {
784784 // Windows can't symlink so we have to use junction on Windows
785- if ( this . serverless . service . custom . pythonRequirements . useFinalCopy ) {
785+ if ( ! this . serverless . service . custom . pythonRequirements . useSymlinks ) {
786786 fse . copySync ( reqsInstalledAt , symlinkPath ) ;
787787 } else if ( process . platform == 'win32' ) {
788788 fse . symlink ( reqsInstalledAt , symlinkPath , 'junction' ) ;
You can’t perform that action at this time.
0 commit comments