Skip to content

ERROR: pack build with google-22 builder fails detection on Apple M1 Pro/Max #500

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
1 of 7 tasks
luispinto-commercetools opened this issue Apr 15, 2025 · 6 comments
Open
1 of 7 tasks
Labels
kind/bug Something isn't working

Comments

@luispinto-commercetools
Copy link

luispinto-commercetools commented Apr 15, 2025

Describe the bug
The pack build command fails with the error "ERROR: No buildpack groups passed detection." when using the gcr.io/buildpacks/builder:google-22 builder image on Apple M1 Pro and M1 Max machines. This issue started occurring after the latest push of the google-22 image. The same command works on Ubuntu.

Additional context
How are you using GCP buildpacks?

  • pack and the gcr.io/buildpacks/builder
  • Cloud Functions
  • Cloud Run
  • Cloud Build
  • App Engine Standard
  • App Engine Flex
  • Firebase App Hosting

Did this used to work?
Yes. This was working before the latest update to the gcr.io/buildpacks/builder:google-22 image. The issue started occurring yesterday (April 14, 2025).

What language is your project primarily written in?
Javascript/Typescript - nodejs runtime

Steps To Reproduce
Steps to reproduce the behavior:

  1. Ensure you have the latest pack CLI installed.
  2. Run the command: pack build --builder=gcr.io/buildpacks/builder:google-22 test --verbose on an Apple M1 Pro or M1 Max machine.
  3. Observe the error.

Expected behavior
The pack build command should successfully detect buildpacks and proceed with the build process, resulting in a container image.

Actual behavior
The pack build command fails during the detection phase with the following error:

======== Results ========
err:  [email protected]
err:  [email protected]
err:  [email protected]
err:  [email protected]
err:  [email protected]
err:  [email protected]
======== Results ========
err:  [email protected]
err:  [email protected]
err:  [email protected]
======== Results ========
err:  [email protected]
err:  [email protected]
err:  [email protected]
======== Results ========
err:  [email protected]
err:  [email protected]
err:  [email protected]
err:  [email protected]
err:  [email protected]
err:  [email protected]
======== Results ========
err:  [email protected]
err:  [email protected]
err:  [email protected]
err:  [email protected]
err:  [email protected]
err:  [email protected]
======== Results ========
err:  [email protected]
err:  [email protected]
err:  [email protected]
err:  [email protected]
err:  [email protected]
err:  [email protected]
======== Results ========
err:  [email protected]
err:  [email protected]
err:  [email protected]
err:  [email protected]
err:  [email protected]
err:  [email protected]
err:  [email protected]
======== Results ========
err:  [email protected]
err:  [email protected]
err:  [email protected]
err:  [email protected]
err:  [email protected]
======== Results ========
err:  [email protected]
err:  [email protected]
err:  [email protected]
err:  [email protected]
err:  [email protected]
======== Results ========
err:  [email protected]
err:  [email protected]
err:  [email protected]
======== Results ========
err:  [email protected]
err:  [email protected]
err:  [email protected]
err:  [email protected]
err:  [email protected]
======== Results ========
err:  [email protected]
err:  [email protected]
err:  [email protected]
err:  [email protected]
err:  [email protected]
======== Results ========
err:  [email protected]
err:  [email protected]
err:  [email protected]
err:  [email protected]
err:  [email protected]
======== Results ========
err:  [email protected]
err:  [email protected]
err:  [email protected]
err:  [email protected]
err:  [email protected]
======== Results ========
err:  [email protected]
err:  [email protected]
err:  [email protected]
err:  [email protected]
err:  [email protected]
err:  [email protected]
======== Results ========
err:  [email protected]
err:  [email protected]
err:  [email protected]
err:  [email protected]
err:  [email protected]
======== Results ========
err:  [email protected]
err:  [email protected]
err:  [email protected]
err:  [email protected]
======== Results ========
err:  [email protected]
err:  [email protected]
err:  [email protected]
err:  [email protected]
err:  [email protected]
err:  [email protected]
err:  [email protected]
======== Results ========
err:  [email protected]
err:  [email protected]
err:  [email protected]
err:  [email protected]
err:  [email protected]
======== Results ========
err:  [email protected]
err:  [email protected]
err:  [email protected]
err:  [email protected]
err:  [email protected]
err:  [email protected]
err:  [email protected]
err:  [email protected]
======== Results ========
err:  [email protected]
err:  [email protected]
err:  [email protected]
err:  [email protected]
err:  [email protected]
======== Results ========
err:  [email protected]
err:  [email protected]
err:  [email protected]
err:  [email protected]
err:  [email protected]
======== Results ========
err:  [email protected]
err:  [email protected]
err:  [email protected]
err:  [email protected]
err:  [email protected]
======== Results ========
err:  [email protected]
err:  [email protected]
err:  [email protected]
err:  [email protected]
======== Results ========
err:  [email protected]
err:  [email protected]
err:  [email protected]
======== Results ========
err:  [email protected]
err:  [email protected]
err:  [email protected]
err:  [email protected]
err:  [email protected]
======== Results ========
err:  [email protected]
Timer: Detector ran for 803.909929ms and ended at 2025-04-15T09:53:18Z
ERROR: No buildpack groups passed detection.
ERROR: failed to detect: buildpack(s) failed with err
ERROR: failed to build: executing lifecycle: failed with status code: 21
@luispinto-commercetools luispinto-commercetools added the kind/bug Something isn't working label Apr 15, 2025
@steals
Copy link

steals commented Apr 15, 2025

I have exactly the same error on Mac Air M1
and it can be reproduced with sample-node app from https://github.com/GoogleCloudPlatform/buildpack-samples.git

as a temp workaround I'm building with previous buildpack version
pack build --builder=gcr.io/buildpacks/builder:@sha256:5977b4bd47d3e9ff729eefe9eb99d321d4bba7aa3b14986323133f40b622aef1

@scwdev
Copy link

scwdev commented Apr 18, 2025

I have exactly the same error on Mac Air M1 and it can be reproduced with sample-node app from https://github.com/GoogleCloudPlatform/buildpack-samples.git

as a temp workaround I'm building with previous buildpack version pack build --builder=gcr.io/buildpacks/builder:@sha256:5977b4bd47d3e9ff729eefe9eb99d321d4bba7aa3b14986323133f40b622aef1

This resolved the issue for me, otherwise same issue on an M3 Max.

Last worked a month ago, now getting the exact error as above.

@austencollins
Copy link

Same issue on M4 Max.

@dmb23
Copy link

dmb23 commented Apr 23, 2025

The error in detection is the same for the current v1 image and the universal_builder_20250413_RC00 image. Using older images works for me, too (on M1 Pro).

@isno
Copy link

isno commented Jun 2, 2025

Same issue on Linux

@zanmagerl
Copy link

Same issue on Mac M1 Pro - workaround from @steals helped

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

7 participants