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

Use [metadata.release.image] for repository key #88

Merged
merged 1 commit into from
Jul 25, 2023
Merged

Conversation

colincasey
Copy link
Contributor

This is a backwards-compatible fix to allow for our buildpacks to migrate away from [metadata.release.docker] to define our repository location in favor of the more agnostic [metadata.release.image].

Fixes #45, W-13738734

This is a backwards-compatible fix to allow for our buildpacks to migrate away from `[metadata.release.docker]` to define our `repository` location in favor of the more agnostic `[metadata.release.image]`.
@colincasey colincasey requested a review from a team as a code owner July 25, 2023 12:29
@edmorley edmorley added the enhancement New feature or request label Jul 25, 2023
Copy link
Member

@edmorley edmorley left a comment

Choose a reason for hiding this comment

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

Thank you!

@colincasey colincasey merged commit b5f134d into main Jul 25, 2023
4 checks passed
@colincasey colincasey deleted the issue_45 branch July 25, 2023 16:10
colincasey added a commit to heroku/buildpacks-nodejs that referenced this pull request Aug 1, 2023
colincasey added a commit to heroku/buildpacks-jvm that referenced this pull request Aug 1, 2023
colincasey added a commit to heroku/buildpacks-ruby that referenced this pull request Aug 1, 2023
colincasey added a commit to heroku/buildpacks-php that referenced this pull request Aug 1, 2023
colincasey added a commit to heroku/buildpacks-go that referenced this pull request Aug 1, 2023
joshwlewis pushed a commit to heroku/buildpacks-go that referenced this pull request Aug 1, 2023
edmorley pushed a commit to heroku/buildpacks-php that referenced this pull request Aug 2, 2023
edmorley pushed a commit to heroku/buildpacks-ruby that referenced this pull request Aug 2, 2023
edmorley pushed a commit to heroku/buildpacks-jvm that referenced this pull request Aug 2, 2023
edmorley pushed a commit to heroku/buildpacks-nodejs that referenced this pull request Aug 2, 2023
colincasey added a commit that referenced this pull request Aug 3, 2023
We can remove this fallback key for reading the repository to publish to now that the following PRs have been merged:

- heroku/buildpacks-go#124
- heroku/buildpacks-php#15
- heroku/buildpacks-ruby#184
- heroku/buildpacks-jvm#555
- heroku/buildpacks-nodejs#610
- heroku/buildpacks-python#58
- heroku/buildpacks-procfile#156
colincasey added a commit that referenced this pull request Aug 3, 2023
We can remove this fallback key for reading the repository to publish to now that the following PRs have been merged:

- heroku/buildpacks-go#124
- heroku/buildpacks-php#15
- heroku/buildpacks-ruby#184
- heroku/buildpacks-jvm#555
- heroku/buildpacks-nodejs#610
- heroku/buildpacks-python#58
- heroku/buildpacks-procfile#156
colincasey added a commit that referenced this pull request Aug 4, 2023
* main:
  Post PR #91 Cleanup (#97)
  Post PR #88 Cleanup (#98)
edmorley added a commit that referenced this pull request Oct 24, 2023
As of #88 the metadata is now under `image.repository` not `docker.repository`,
however, the error message still referenced the old location.

This caused confusion in when debugging heroku/buildpacks-jvm#60:
https://github.com/heroku/buildpacks-jvm/actions/runs/6626786735/job/18000413851#step:10:10

In addition to fixing the error message, I've renamed the enum variants
and variables to match the new name.

Lastly, I've updated the README to match the more concise release
metadata style now used by all of our buildpacks (the repository URL
is also a real example, to make it clearer that the URL shouldn't include
the `docker://` prefix).

Fixes #168.
GUS-W-14355165.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Prefer image (or other naming) instead of docker for storing where images are published
2 participants