File tree 3 files changed +5
-5
lines changed
3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -419,13 +419,13 @@ functions:
419
419
# ## Copy dependencies instead of linking
420
420
421
421
Before 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 :
424
424
425
425
` ` ` yaml
426
426
custom:
427
427
pythonRequirements:
428
- useFinalCopy: true
428
+ useSymlinks: false
429
429
` ` `
430
430
431
431
# # Manual invocations
Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ class ServerlessPythonRequirements {
58
58
pipCmdExtraArgs : [ ] ,
59
59
noDeploy : [ ] ,
60
60
vendor : '' ,
61
- useFinalCopy : false ,
61
+ useSymlinks : true ,
62
62
} ,
63
63
( this . serverless . service . custom &&
64
64
this . serverless . service . custom . pythonRequirements ) ||
Original file line number Diff line number Diff line change @@ -778,7 +778,7 @@ async function installAllRequirements() {
778
778
reqsInstalledAt != symlinkPath
779
779
) {
780
780
// 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 ) {
782
782
fse . copySync ( reqsInstalledAt , symlinkPath ) ;
783
783
} else if ( process . platform == 'win32' ) {
784
784
fse . symlink ( reqsInstalledAt , symlinkPath , 'junction' ) ;
You can’t perform that action at this time.
0 commit comments