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

Add support for experimental api mode #861

Closed
wants to merge 1 commit into from

Conversation

natalieparellano
Copy link
Member

@natalieparellano natalieparellano commented May 25, 2022

Fixes #459

This (like many PRs of late) ended up being rather huge as I took the opportunity to tackle another long-awaited refactor. The most interesting changes are in the api and platform/guard packages.

Other changes:

  • Refactors cmd package:
    • Moves platform logic to platform and platform/launch
    • Moves env and flag parsing to cmd/lifecycle/cli and cmd/launcher/cli
  • Moves constants for supported & deprecated apis from api package to
    platform and buildpack packages (this removes all CNB business logic from api)
  • Creates log package to hold interface, removing duplication

@natalieparellano natalieparellano marked this pull request as ready for review May 25, 2022 21:29
@natalieparellano natalieparellano requested a review from a team as a code owner May 25, 2022 21:29
@natalieparellano natalieparellano force-pushed the feature/pre-release-api branch 5 times, most recently from 764fd44 to 66d188f Compare May 26, 2022 20:19
@@ -0,0 +1,172 @@
package cli
Copy link
Member Author

Choose a reason for hiding this comment

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

Moved from cmd package

@@ -1,28 +0,0 @@
package platform
Copy link
Member Author

Choose a reason for hiding this comment

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

Moved to platform/paths.go

@@ -0,0 +1,13 @@
package launch
Copy link
Member Author

Choose a reason for hiding this comment

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

Avoid having the launcher depend on the platform package, to keep the binary smaller

- Refactors cmd package:
  - Moves platform logic to platform or platform/launch
  - Moves env and flag parsing to cmd/lifecycle/cli and cmd/launcher/cli
- Moves constants for supported & deprecated apis from api package to
  platform and buildpack packages (this removes all CNB business logic from api)
- Creates log package to hold interface, removing duplication

Signed-off-by: Natalie Arellano <[email protected]>
@natalieparellano
Copy link
Member Author

After discussion in 6/9 Working Group, the pre-release api aspect of this PR is not as useful for our current needs (though it may be useful when readying a 1.0 spec). Closing this PR in favor of a smaller PR that just implements experimental features.

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.

[RFC 0066] Prelease APIs
1 participant