File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -162,7 +162,6 @@ function docker_build_zip {
162162
163163 rm -rf $temp_dir
164164 echo " Done creating archive $destination "
165- rm pyproject.toml.bak
166165}
167166
168167rm -rf $LAYER_DIR
174173 do
175174 echo " Building layer for Python ${python_version} arch=${architecture} "
176175 docker_build_zip ${python_version} $LAYER_DIR /${LAYER_FILES_PREFIX} -${architecture} -${python_version} .zip ${architecture} " ddtrace_serverless" " serverless" || true
177- if [ -f pyproject.toml.bak ]; then # true means the previous attempt failed
176+ if [ $? != 0 ]; then
177+ echo " Attempting layer build again with package ddtrace"
178178 docker_build_zip ${python_version} $LAYER_DIR /${LAYER_FILES_PREFIX} -${architecture} -${python_version} .zip ${architecture} " ddtrace" " manylinux2014"
179179 fi
180180 done
You can’t perform that action at this time.
0 commit comments