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 @@ -419,13 +419,13 @@ functions:
419419# ## Copy dependencies instead of linking
420420
421421Before final packaging, a link is created in .serverless folder for python dependencies.
422- If it is not possible to create a symbolic link, dependencies can be copied instead of linked
423- whith the foloowing option :
422+ If it is not possible for the OS to create a symbolic link, dependencies can be copied,
423+ instead of linked, with the following option :
424424
425425` ` ` yaml
426426custom:
427427 pythonRequirements:
428- useFinalCopy: true
428+ useSymlinks: false
429429` ` `
430430
431431# # 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 @@ -778,7 +778,7 @@ async function installAllRequirements() {
778778 reqsInstalledAt != symlinkPath
779779 ) {
780780 // Windows can't symlink so we have to use junction on Windows
781- if ( this . serverless . service . custom . pythonRequirements . useFinalCopy ) {
781+ if ( ! this . serverless . service . custom . pythonRequirements . useSymlinks ) {
782782 fse . copySync ( reqsInstalledAt , symlinkPath ) ;
783783 } else if ( process . platform == 'win32' ) {
784784 fse . symlink ( reqsInstalledAt , symlinkPath , 'junction' ) ;
You can’t perform that action at this time.
0 commit comments