File tree 1 file changed +2
-3
lines changed
1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,6 @@ class PkgPyFuncs {
24
24
if ( ! config ) {
25
25
this . error ( "No serverless-package-python-functions configuration detected. Please see documentation" )
26
26
}
27
-
28
27
this . requirementsFile = config . requirementsFile || 'requirements.txt'
29
28
config . buildDir ? this . buildDir = config . buildDir : this . error ( "No buildDir configuration specified" )
30
29
this . globalRequirements = config . globalRequirements || [ ]
@@ -35,7 +34,6 @@ class PkgPyFuncs {
35
34
this . containerName = config . containerName || 'serverless-package-python-functions'
36
35
this . mountSSH = config . mountSSH || false
37
36
this . abortOnPackagingErrors = config . abortOnPackagingErrors || false
38
-
39
37
this . dockerServicePath = '/var/task'
40
38
}
41
39
@@ -122,7 +120,8 @@ class PkgPyFuncs {
122
120
if ( this . abortOnPackagingErrors ) {
123
121
const countErrorNewLines = errorText . split ( '\n' ) . length
124
122
125
- if ( countErrorNewLines < 2 && errorText . toLowerCase ( ) . includes ( 'git clone' ) ) {
123
+
124
+ if ( ! errorText . includes ( "ERROR:" ) && countErrorNewLines < 2 && errorText . toLowerCase ( ) . includes ( 'git clone' ) ) {
126
125
// Ignore false positive due to pip git clone printing to stderr
127
126
} else if ( errorText . toLowerCase ( ) . includes ( 'warning' ) && ! errorText . toLowerCase ( ) . includes ( 'error' ) ) {
128
127
// Ignore warnings
You can’t perform that action at this time.
0 commit comments