-
Notifications
You must be signed in to change notification settings - Fork 1
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 profile buildpack detect and build logic #11
Conversation
45e0c11
to
8a38c2a
Compare
This commit adds detect and build business logic and basic tests Signed-off-by: gcemaj <gcemaj@bloomberg.net>
5fa7981
to
699ec05
Compare
Signed-off-by: gcemaj <gcemaj@bloomberg.net>
@samj1912 I was playing with this buildpack and noticed that my I'd like to think that in most cases the |
Signed-off-by: gcemaj <gcemaj@bloomberg.net>
i thought there was a way to say what version of the lifecycle a BP was compatible with. We just need to make this be only compatible with versions that are new enough right? |
Signed-off-by: gcemaj <gcemaj@bloomberg.net>
In regards to the duplicate runs, an update from a Slack conversation. It sounds like the removal from |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some minor comments. Otherwise LGTM.
profile/detect_test.go
Outdated
Plans: []libcnb.BuildPlan{{ | ||
Provides: []libcnb.BuildPlanProvide{{ | ||
Name: "profile", | ||
}}, | ||
Requires: []libcnb.BuildPlanRequire{{ | ||
Name: "profile", | ||
}}, | ||
}}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think the buildpack actually needs any provides/requires?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
so the plans should be empty?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This question has come up before. I know that in Paketo we always put something, even if provides/requires match-up like here. I don't totally know why that is though. If it's historic reasons or if there's some function to it. It logically seems redundant though, since you are providing your own requirement. The only thing that I can think of off the top of my head that this would do is to ensure there's an entry in the buildplan, but this buildpack isn't looking at the buildplan so idk.
@gcemaj did you by chance try it with an empty buildplan? Did it work the same?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i have not yet, can i do it locally?
Signed-off-by: gcemaj <gcemaj@bloomberg.net>
Signed-off-by: gcemaj <gcemaj@bloomberg.net>
Signed-off-by: gcemaj <gcemaj@bloomberg.net>
closes: #7
closes: #8
Signed-off-by: gcemaj gcemaj@bloomberg.net