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

Make the run image Target public #815

Merged
merged 1 commit into from
Apr 10, 2024
Merged

Make the run image Target public #815

merged 1 commit into from
Apr 10, 2024

Conversation

edmorley
Copy link
Member

@edmorley edmorley commented Apr 10, 2024

Previously ContextTarget (the type of DetectContext::target and BuildContext::target) was private, so couldn't be used by buildpacks migrating from stacks to targets.

It's now been made public, and also renamed to the slightly clearer Target. Since it wasn't public before, this rename on its own isn't a breaking change.

However, that means we now have two Targets, since libcnb-data has a buildpack::Target. Since the latter will be much less frequently used (and most of the other buildpack::* types are prefixed, eg BuildpackId, BuildpackVersion etc), I've renamed the libcnb-data type to BuildpackTarget to disambiguate it (which is a breaking change).

Lastly, since ContextTarget was never public, I've removed the existing changelog entry mentioning fixing the wording of the rustdocs (since the rustdocs weren't visible before).

GUS-W-15468609.

Previously `ContextTarget` (the type of `DetectContext::target`
and `BuildContext::target`) was private, so couldn't be used
by buildpacks migrating from stacks to targets.

It's now been made public, and also renamed to the slightly
clearer `Target`. Since it wasn't public before, this rename
isn't a breaking change.

However, that means we now have two `Target`s, since `libcnb-data`
has a `buildpack::Target`. Since the latter will be much less frequently
used (and most of the other `buildpack::*` types are prefixed, eg
`BuildpackId`, `BuildpackVersion` etc), I've renamed the `libcnb-data`
type to `BuildpackTarget` to disambiguate it.
@edmorley edmorley self-assigned this Apr 10, 2024
@edmorley edmorley marked this pull request as ready for review April 10, 2024 16:25
@edmorley edmorley requested a review from a team as a code owner April 10, 2024 16:25
@edmorley edmorley enabled auto-merge (squash) April 10, 2024 16:30
@edmorley edmorley merged commit 348e2ba into main Apr 10, 2024
7 checks passed
@edmorley edmorley deleted the edmorley/target-public branch April 10, 2024 16:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants