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

Require the CNB_PLATFORM_API env var to be set #1145

Merged
merged 2 commits into from
Jul 11, 2023

Conversation

natalieparellano
Copy link
Member

@natalieparellano natalieparellano commented Jul 10, 2023

Instead of defaulting to (deprecated) version 0.3

Instead of defaulting to a newer Platform API version, which would silently change behavior for platforms that do not currently set this env var

First PR in support of https://github.com/buildpacks/rfcs/blob/main/text/0110-deprecate-apis.md

… to (deprecated) version 0.3

Instead of defaulting to a newer Platform API version, which would silently change behavior
for platforms that do not currently set this env var.

Signed-off-by: Natalie Arellano <narellano@vmware.com>
@natalieparellano natalieparellano requested a review from a team as a code owner July 10, 2023 16:53
@natalieparellano natalieparellano changed the title Require the CNB_PLATFORM_API env var to be set, instead of defaulting… Require the CNB_PLATFORM_API env var to be set Jul 10, 2023
@natalieparellano natalieparellano force-pushed the require-cnb-platform-api branch 2 times, most recently from 514d6b6 to a8846c5 Compare July 11, 2023 13:12
Signed-off-by: Natalie Arellano <narellano@vmware.com>
Copy link
Contributor

@joe-kimmel-vmw joe-kimmel-vmw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

all the //nolints feel a little tragic but at a glance it looks like you can't use the skip-dirs directory for only one kind of linter.
so we could decide to just never lint our acceptance tests at all, but I think there's no granular way of saying "my acceptance tests should be allowed to pass unsanitized strings directly to the command line but please do all the other linty checks."

@natalieparellano natalieparellano merged commit d14bae1 into main Jul 11, 2023
7 checks passed
@natalieparellano natalieparellano deleted the require-cnb-platform-api branch July 11, 2023 17:13
dlion pushed a commit to dlion/lifecycle that referenced this pull request Jul 20, 2023
* Require the CNB_PLATFORM_API env var to be set, instead of defaulting to (deprecated) version 0.3

Instead of defaulting to a newer Platform API version, which would silently change behavior
for platforms that do not currently set this env var.

Signed-off-by: Natalie Arellano <narellano@vmware.com>

* Fix acceptance

Signed-off-by: Natalie Arellano <narellano@vmware.com>

---------

Signed-off-by: Natalie Arellano <narellano@vmware.com>
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

Successfully merging this pull request may close these issues.

None yet

3 participants