Rename Buildpackage
to PackageDescriptor
#656
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
While https://buildpacks.io refers to
package.toml
as a "buildpackage" once, it is usually referred to aspackage.toml
which is what we also use in our day-to-day conversations. I thinkBuildpackage
is a poor name to use within libcnb for the following reasons:BuildpackPackage
, it's very easy to confuse the two.I wanted to avoid renaming it to
PackageToml
. Even though it might be the first thing that comes to mind as better name, I don't think its a good one. TheToml
suffix would imply it is TOML data which is not the case for the parsed representation. It can be created via code and never be (de)serialized from or to TOML and the serialised representation is irrelevant when we work with the data in code. We have a similar situation withbuildpack.toml
which we namedBuildpackDescriptor
for similar reasons.Thus, I went with
PackageDescriptor
to align withBuildpackDescriptor
. I think readability of the code already improved after this rename.I have other changes in mind with regard to
PackageDescriptor
that should simplify the code a bunch, but these are out of scope for this PR. This is strictly just a rename.Ref: GUS-W-14007685