Skip to content

Use CNB_TARGET_* variables #148

@leafty

Description

@leafty

Instead of using uname -m or other similar commands to perform platform detection, use the appropriate CNB_TARGET_* environment variables.

Reference: https://github.com/buildpacks/spec/blob/main/buildpack.md#environment

Also, note that using uname during builds breaks cross-platform builds (running builder image is not the same platform as the target image).

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions