Skip to content

Commit c023179

Browse files
committed
fix(pack-images): no config found
1 parent 2d1f977 commit c023179

6 files changed

Lines changed: 6 additions & 6 deletions

File tree

buildpacks/nodejs/bin/build

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ fi
5252
if [[ -f package.json && "${local_package_checksum}" == "${remote_package_checksum}" ]]; then
5353
echo "---> Reusing package.json"
5454
cp -r "${node_modules_layer_dir}" "./node_modules"
55-
else
55+
elif [[ -f package.json ]]; then
5656
echo "---> Installing package.json with npm install."
5757
rm "${node_modules_layer_dir}" -rf
5858
npm install

buildpacks/nodejs/bin/detect

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
set -eo pipefail
33

44
# 1. CHECK IF APPLICABLE
5-
if [ ! -f "package.json" ] || [ ! -f ".node_version" ]; then
5+
if [ ! -f "package.json" ] || [ ! -f ".node-version" ]; then
66
exit 100
77
fi
88

buildpacks/php/bin/build

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ if [[ -f "${extensions_layer_dir}.toml" ]]; then
7676
fi
7777
if [[ -f extensions.json && "${local_extensions_checksum}" == "${remote_extensions_checksum}" ]]; then
7878
echo "---> Reusing extensions.json"
79-
else
79+
elif [[ -f extensions.json ]]; then
8080
echo "---> Config pecl"
8181
pecl config-set php_dir "${php_layer_dir}"
8282
pecl config-set bin_dir "${php_layer_dir}"/bin

buildpacks/php/bin/detect

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
set -eo pipefail
33

44
# 1. CHECK IF APPLICABLE
5-
if [[ ! -f composer.json ]] && [[ ! -f index.php ]]; then
5+
if [[ ! -f composer.json ]] && [[ ! -f index.php ]] && [[ ! -f .php-version ]]; then
66
exit 100
77
fi
88

buildpacks/python/bin/build

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ fi
8787

8888
if [[ -f requirements.txt && "${local_requirements_checksum}" == "${remote_requirements_checksum}" ]]; then
8989
echo "---> Reusing requirements"
90-
else
90+
elif [[ -f requirements.txt ]]; then
9191
echo "---> Installing requirements with pip"
9292
python -m pip install -r requirements.txt \
9393
--exists-action=w --src="${python_layer_dir}"/src \

buildpacks/python/bin/detect

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
set -eo pipefail
33

44
# 1. CHECK IF APPLICABLE
5-
if [ ! -f "requirements.txt" ] && [ ! -f "setup.py" ]; then
5+
if [ ! -f "requirements.txt" ] && [ ! -f "setup.py" ] && [ ! -f ".python-version" ]; then
66
exit 100
77
fi
88

0 commit comments

Comments
 (0)