buildpacks icon indicating copy to clipboard operation
buildpacks copied to clipboard

Unable to find Node with version : 12.11.0

Open badis opened this issue 3 years ago • 1 comments


Digest: sha256:9d194fc3997e8c448473431433908d932cd359b10b270f2b0f76ec795c8cae28
Status: Image is up to date for buildpacksio/lifecycle:0.13.3
===> DETECTING
[detector] 3 of 5 buildpacks participating
[detector] google.nodejs.runtime 1.0.0
[detector] google.nodejs.npm     1.0.0
[detector] google.utils.label    0.0.2
===> ANALYZING
[analyzer] Previous image with name "sample-node" not found
===> RESTORING
===> BUILDING
[builder] === Node.js - Runtime ([email protected]) ===
[builder] Installing Node.js v12.11.0.
[builder] 2022/06/19 11:19:19 [DEBUG] GET https://dl.google.com/runtimes/nodejs/nodejs-12.11.0.tar.gz
[builder] WARNING: Failed to download Node.js version 12.11.0. You can specify the verison by setting the GOOGLE_RUNTIME_VERSION environment variable
[builder] Failure: (ID: 58e6a0ae) fetching https://dl.google.com/runtimes/nodejs/nodejs-12.11.0.tar.gz returned HTTP status: 404
[builder] --------------------------------------------------------------------------------
[builder] Sorry your project couldn't be built.
[builder] Our documentation explains ways to configure Buildpacks to better recognise your project:
[builder]  -> https://github.com/GoogleCloudPlatform/buildpacks/blob/main/README.md
[builder] If you think you've found an issue, please report it:
[builder]  -> https://github.com/GoogleCloudPlatform/buildpacks/issues/new
[builder] --------------------------------------------------------------------------------
[builder] ERROR: failed to build: exit status 1
ERROR: failed to build: executing lifecycle. This may be the result of using an untrusted builder: failed with status code: 51

badis avatar Jun 19 '22 11:06 badis

According to the test file

Add environment variable GOOGLE_RUNTIME_VERSION to 14.17.0 as below, and it works

pack build --builder=gcr.io/buildpacks/builder --env 'GOOGLE_RUNTIME_VERSION=14.17.0' sample-node

mxgit1090 avatar Jul 09 '22 09:07 mxgit1090

Fixed in https://github.com/GoogleCloudPlatform/buildpacks/issues/215

spew avatar Aug 31 '22 15:08 spew