buildpacks: Unable to detect node.js (python runtime is used instead)
pack build --path . \
--builder=gcr.io/buildpacks/builder:v1 \
--run-image gcr.io/buildpacks/gcp/run:v1 \
cpca-frontend:0.4
v1: Pulling from buildpacks/builder
Digest: sha256:81bd48b6df506fbdf5ce4e4fe1002f8e94676bfecefc6481373507097a122c4b
Status: Image is up to date for gcr.io/buildpacks/builder:v1
v1: Pulling from buildpacks/gcp/run
3a165760c9b0: Already exists
14e0163c1914: Already exists
3c2cba919283: Already exists
a32c8ca7034a: Already exists
7136bdbcd1a4: Already exists
Digest: sha256:778ebbfeb810ca2f590a8a8792e048a68bb023983052c80f19a9d191dee7c161
Status: Downloaded newer image for gcr.io/buildpacks/gcp/run:v1
===> DETECTING
3 of 4 buildpacks participating
google.python.runtime 0.9.1
google.config.entrypoint 0.9.0
google.utils.label 0.0.1
===> ANALYZING
===> RESTORING
===> BUILDING
=== Python - Runtime (google.python.runtime@0.9.1) ===
Using runtime version from GOOGLE_RUNTIME_VERSION: 14.15.5
Failure: (ID: 3bb836d3) Runtime version 14.15.5 does not exist at https://storage.googleapis.com/gcp-buildpacks/python/python-14.15.5.tar.gz (status 403). You can specify the version with GOOGLE_RUNTIME_VERSION.
--------------------------------------------------------------------------------
Sorry your project couldn't be built.
Our documentation explains ways to configure Buildpacks to better recognise your project:
-> https://github.com/GoogleCloudPlatform/buildpacks/blob/main/README.md
If you think you've found an issue, please report it:
-> https://github.com/GoogleCloudPlatform/buildpacks/issues/new
--------------------------------------------------------------------------------
ERROR: failed to build: exit status 1
ERROR: failed to build: executing lifecycle: failed with status code: 145
make: *** [Makefile:39: build] Error 1
The structure of the repository:
drwxr-xr-x 8 dmitry dmitry 4.0K Apr 29 16:48 .
drwxr-xr-x 4 dmitry dmitry 4.0K Apr 29 15:05 ..
drwxr-xr-x 8 dmitry dmitry 4.0K Apr 29 16:58 .git
drwxr-xr-x 3 dmitry dmitry 4.0K Apr 28 21:08 .kubernetes
drwxr-xr-x 3 dmitry dmitry 4.0K Apr 29 16:01 dist
drwxr-xr-x 946 dmitry dmitry 36K Apr 29 16:00 node_modules
drwxr-xr-x 4 dmitry dmitry 4.0K Apr 28 21:08 projects
drwxr-xr-x 2 dmitry dmitry 4.0K Apr 28 21:08 utils
-rw-r--r-- 1 dmitry dmitry 274 Apr 28 21:08 .editorconfig
-rw-r--r-- 1 dmitry dmitry 99 Apr 28 21:08 .env.example
-rw-r--r-- 1 dmitry dmitry 631 Apr 28 21:08 .gitignore
-rw-r--r-- 1 dmitry dmitry 9 Apr 29 16:36 .nvmrc
-rw-r--r-- 1 dmitry dmitry 308 Apr 28 21:08 .prettierrc
-rw-r--r-- 1 dmitry dmitry 1.7K Apr 29 16:58 Makefile
-rw-r--r-- 1 dmitry dmitry 88 Apr 29 16:35 Procfile
-rw-r--r-- 1 dmitry dmitry 2.4K Apr 29 16:49 README.md
-rw-r--r-- 1 dmitry dmitry 5.7K Apr 28 21:08 angular.json
-rw-r--r-- 1 dmitry dmitry 5.4K Apr 28 21:08 nginx.conf
-rw-r--r-- 1 dmitry dmitry 560K Apr 29 15:59 package-lock.json
-rw-r--r-- 1 dmitry dmitry 2.4K Apr 29 16:36 package.json
-rw-r--r-- 1 dmitry dmitry 141 Apr 29 16:55 project.toml
-rw-r--r-- 1 dmitry dmitry 980 Apr 28 21:08 tsconfig.json
-rw-r--r-- 1 dmitry dmitry 207 Apr 28 21:08 tslint.json
project.toml
[[build.env]]
name = "GOOGLE_RUNTIME_VERSION"
value = "14.15.5"
[[build.env]]
name = "GOOGLE_ENTRYPOINT"
value = "/cnb/lifecycle/launcher"
There is no python code in the repository at all, yet a PYTHON buildbpack is detected
About this issue
- Original URL
- State: open
- Created 3 years ago
- Comments: 19 (11 by maintainers)
Let’s keep it open. To summarize, a .py file anywhere in the source tree shouldn’t make the python buildpack pass detection.