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

Dockerfiles phase 1 (detect changes) #860

Merged
merged 61 commits into from
Jun 8, 2022

Conversation

natalieparellano
Copy link
Member

@natalieparellano natalieparellano commented May 24, 2022

Generate changes to follow

Merging this PR should be blocked on #459 and #460 (we can update the platform api version in ##861)

The diff is quite huge due to the GroupBuildpack -> GroupElement rename. The most interesting files are probably:

  • cmd/lifecycle/detector.go
  • detector.go
  • detector_test.go
  • buildpack/detect.go
  • buildpack.detect_test.go

I based this branch off of cmd-package (#805) before it was merged, so there are several commits that don't actually relate to the detector, but they don't show up in the diff now that those commits are on main. We squash on merge so it shouldn't matter.

Signed-off-by: Natalie Arellano <[email protected]>
Signed-off-by: Natalie Arellano <[email protected]>
Signed-off-by: Natalie Arellano <[email protected]>
Signed-off-by: Natalie Arellano <[email protected]>
Signed-off-by: Natalie Arellano <[email protected]>
Signed-off-by: Natalie Arellano <[email protected]>
Signed-off-by: Natalie Arellano <[email protected]>
Signed-off-by: Natalie Arellano <[email protected]>
Signed-off-by: Natalie Arellano <[email protected]>
Signed-off-by: Natalie Arellano <[email protected]>
Signed-off-by: Natalie Arellano <[email protected]>
Signed-off-by: Natalie Arellano <[email protected]>
Signed-off-by: Natalie Arellano <[email protected]>
Signed-off-by: Natalie Arellano <[email protected]>
Signed-off-by: Natalie Arellano <[email protected]>
Signed-off-by: Natalie Arellano <[email protected]>
With some small changes to avoid an import cycle, we can make a meaningful platform package

Signed-off-by: Natalie Arellano <[email protected]>
Eventually only the platform package should switch on platform api

Signed-off-by: Natalie Arellano <[email protected]>
Having the analyzer factory take a list of args will ensure we don't forget
to update the creator when things change.

Signed-off-by: Natalie Arellano <[email protected]>
Signed-off-by: Natalie Arellano <[email protected]>
Signed-off-by: Natalie Arellano <[email protected]>
Signed-off-by: Natalie Arellano <[email protected]>
Signed-off-by: Natalie Arellano <[email protected]>
@natalieparellano natalieparellano marked this pull request as ready for review June 3, 2022 14:24
@natalieparellano natalieparellano requested a review from a team as a code owner June 3, 2022 14:24
Copy link
Contributor

@mboldt mboldt left a comment

Choose a reason for hiding this comment

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

Overall looks good! Left some thoughts and questions (about stuff you've probably thought about a lot more than me, so take with a grain of salt ;-) ).

cmd/api_verifier.go Outdated Show resolved Hide resolved
buildpack/descriptor.go Outdated Show resolved Hide resolved
cmd/lifecycle/creator.go Show resolved Hide resolved
detector_test.go Show resolved Hide resolved
internal/lifecycle/utils.go Outdated Show resolved Hide resolved
Signed-off-by: Natalie Arellano <[email protected]>
Signed-off-by: Natalie Arellano <[email protected]>
Signed-off-by: Natalie Arellano <[email protected]>
Signed-off-by: Natalie Arellano <[email protected]>
Signed-off-by: Natalie Arellano <[email protected]>
- ReadOrder returns an order for extensions that has "extension = true" filled in
- Remove some duplication in the detector

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

Thanks so much for your feedback @mboldt !

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.

2 participants