-
Notifications
You must be signed in to change notification settings - Fork 71
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
RFC: Group additions to Builder order #129
Conversation
6f02718
to
178e1f7
Compare
Signed-off-by: Joe Kutner <jpkutner@gmail.com>
178e1f7
to
d0ca1ac
Compare
id = "<buildpack ID>" | ||
``` | ||
|
||
With the `pack` CLI, the `pre` and `post` buildpacks can be added with the `--pre-buildpack` and `--post-buildack` options. |
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.
Do we already use the terminology pre
or post
anywhere? What do you think of start
/end
or first
/last
?
text/0000-group-additions.md
Outdated
|
||
The `after` and `before` keys define a requisite buildpack, which the injected buildpack will run either after or before accordingly. | ||
|
||
If injected buildpacks need to conditionally run after more than one buildpack, the user can put the `after` and `before` keys in a `[[build.buildpacks.or]]` array of tables. |
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.
Can you put an example here? I wonder if we should scope this to simple use cases if we can't express it in the CLI.
I assume that if you can't satisfy or the buildpack id doesn't exist it will fail? |
If I recall correctly, there were some changes suggested for this RFC.
Additional note: suggestions to move this to |
Signed-off-by: Joe Kutner <jpkutner@gmail.com>
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.
Would this mean deprecating from=builder
?
As a side point, the motivation described doesn't really make it clear for me what's wrong with from=builder
(other than it being undocumented), and how this would help. If you could clarify that in the RFC, that would definitely help me understand it a bit more
Signed-off-by: Joe Kutner <jpkutner@gmail.com> Co-authored-by: David Freilich <dfreilich@vmware.com>
@dfreilich yea, goodbye |
Signed-off-by: Joe Kutner <jpkutner@gmail.com>
Based on the changes made to this RFC, it seems like the scope can be minimized to only prepend and append buildpacks. If so, could this not already be done provided buildpack URIs? As an example ...in [[build.buildpacks]]
url = "./my-pre-buildpack"
[[build.buildpacks]]
url = "urn:cnb:builder"
[[build.buildpacks]]
url = "./my-post-buildpack" ... in pack:
|
@jromero i think we should kill |
If it's due to the fact that it's not intuitive I agree. Otherwise, I think it serves its purpose. I have some slight reservations about boxing ourselves to pre and post terminology instead of a more robust solution but not strong enough to stand in the way of this RFC. |
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.
Overall, I think that the change is net positive. I have some nits (to @hone's point, I'm not sure whether pre
/post
is more or less intuitive than start
/end
), but those are implementation details, and I'd rather discuss them on the PR to add this, then slow down the process here.
To my mind, while we do have a perfectly good way of doing it now (either --buildpack from=builder
or --buildpack urn:cnb:builder
), those aren't intuitive (even if they were documented), and having an explicit flag for users will definitely help them appreciate how they can adjust builders for their needs.
1 question: do you think that users should be able to specify multiple --pre
or --post
buildpacks? I think that it should be fine, and there's no reason to restrict them to just one, but I'd like to see that explicitly discussed.
@jromero yea, i actually tend to favor things don't require new flag or new things to learn, but I have two concerns about
@jromero I do share this concern, which is why I was hoping to capture the
@dfreilich yea, I think they would work like the normal |
FCP starting 2/10 |
@ekcasey can you link the created issues? |
@sclevine implementation is a noop. But sorry, I faked you out. I was going through this too quickly and forgot the |
@sclevine probably. at a minimum the |
Readable