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

Fix error message shown when image repository metadata is missing #169

Merged
merged 1 commit into from
Oct 24, 2023

Conversation

edmorley
Copy link
Member

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.

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.
@edmorley edmorley added the bug Something isn't working label Oct 24, 2023
@edmorley edmorley self-assigned this Oct 24, 2023
@edmorley edmorley marked this pull request as ready for review October 24, 2023 12:59
@edmorley edmorley requested a review from a team as a code owner October 24, 2023 12:59
@edmorley edmorley enabled auto-merge (squash) October 24, 2023 12:59
@edmorley edmorley merged commit 6990a7c into main Oct 24, 2023
2 checks passed
@edmorley edmorley deleted the edmorley/fix-missing-metadata-error-message branch October 24, 2023 13:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Incorrect error message shown when release metadata is missing from buildpack.toml
2 participants