Skip to content
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

Task "buildpack-phases": ERROR: failed to : set API for buildpack 'paketo-buildpacks/[email protected]': buildpack API version '0.7' is incompatible with the lifecycle #1223

Open
johan974 opened this issue Dec 7, 2023 · 1 comment

Comments

@johan974
Copy link

johan974 commented Dec 7, 2023

Task: "buildpack-phases"

Expected Behavior

Detect the buildpacks, (maven) build the soures to a JAR, build a Docker image.

Actual Behavior

When running the Task "buildpack-phases" with builder-image "gcr.io/buildpacks/builder:v1" as part of a custom pipeline I get this error:

ERROR: failed to : set API for buildpack '[email protected]': buildpack API version '0.8' is incompatible with the lifecycle

When running it with a "paketobuildpacks/builder:base" builder I get this error:

ERROR: failed to : set API for buildpack 'paketo-buildpacks/[email protected]': buildpack API version '0.7' is incompatible with the lifecycle

Steps to Reproduce the Problem

  1. This is my pipeline task

This is part of my pipeline. I have credentials for SSH and docker set via a ServiceAccount.

- name: build
  taskRef:
    name: buildpacks-phases
  runAfter:
    - fetch-repository
  params:
    - name: APP_IMAGE
      value: $(params.TARGET_IMAGE):$(params.TARGET_VERSION)
    - name: BUILDER_IMAGE
      value: "gcr.io/buildpacks/builder:v1"
    - name: SOURCE_SUBPATH
      value: "."
  workspaces:
    - name: source
      workspace: source-workspace

I also tried:

- name: build
  taskRef:
    name: buildpacks-phases
  runAfter:
    - fetch-repository
  params:
    - name: APP_IMAGE
      value: $(params.TARGET_IMAGE):$(params.TARGET_VERSION)
    - name: BUILDER_IMAGE
      value: "paketobuildpacks/builder:base"
    - name: SOURCE_SUBPATH
      value: "."
    - name: ENV_VARS
      value:
        - CNB_PLATFORM_API=0.5

Because of the warning of a deprecated CNB_PLATFORM_API of 0.4.

  1. Just run the pipeline

Additional Info

@johan974 johan974 changed the title ERROR: failed to : set API for buildpack '[email protected]': buildpack API version '0.8' is incompatible with the lifecycle Task "buildpack-phases": ERROR: failed to : set API for buildpack '[email protected]': buildpack API version '0.8' is incompatible with the lifecycle Dec 7, 2023
@johan974 johan974 changed the title Task "buildpack-phases": ERROR: failed to : set API for buildpack '[email protected]': buildpack API version '0.8' is incompatible with the lifecycle Task "buildpack-phases": ERROR: failed to : set API for buildpack 'paketo-buildpacks/[email protected]': buildpack API version '0.7' is incompatible with the lifecycle Dec 18, 2023
@johan974
Copy link
Author

Anybody out there? Is this the right place to suggest issues?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant