Skip to content

feat(docker): suggest image if not found#5451

Merged
caarlos0 merged 2 commits intomainfrom
docker-manifest-suggest-images
Jan 16, 2025
Merged

feat(docker): suggest image if not found#5451
caarlos0 merged 2 commits intomainfrom
docker-manifest-suggest-images

Conversation

@caarlos0
Copy link
Copy Markdown
Member

If you have a typo in the docker_manifests setup, the error ends up not being too helpful.

This improves it a little by using levenshtein distances to figure out if it might have been a typo, and suggesting it.

It should not affect the behavior of how things work, besides the warning change.

Had the idea while helping @rs, so thanks for that 🙏🏻

Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
@caarlos0 caarlos0 added the enhancement New feature or request label Jan 15, 2025
@caarlos0 caarlos0 self-assigned this Jan 15, 2025
@pull-request-size pull-request-size Bot added the size/S Denotes a PR that changes 10-29 lines, ignoring generated files. label Jan 15, 2025
@cloudflare-workers-and-pages
Copy link
Copy Markdown

cloudflare-workers-and-pages Bot commented Jan 15, 2025

Deploying goreleaser with  Cloudflare Pages  Cloudflare Pages

Latest commit: ec86ecd
Status: ✅  Deploy successful!
Preview URL: https://bb541861.goreleaser.pages.dev
Branch Preview URL: https://docker-manifest-suggest-imag.goreleaser.pages.dev

View logs

@pull-request-size pull-request-size Bot added size/M Denotes a PR that changes 30-99 lines, ignoring generated files. and removed size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Jan 15, 2025
@codecov
Copy link
Copy Markdown

codecov Bot commented Jan 15, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 82.87%. Comparing base (8258df5) to head (ec86ecd).
Report is 5 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #5451   +/-   ##
=======================================
  Coverage   82.86%   82.87%           
=======================================
  Files         157      157           
  Lines       15350    15358    +8     
=======================================
+ Hits        12720    12728    +8     
  Misses       2079     2079           
  Partials      551      551           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@caarlos0 caarlos0 merged commit 12b78d4 into main Jan 16, 2025
@caarlos0 caarlos0 deleted the docker-manifest-suggest-images branch January 16, 2025 01:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request size/M Denotes a PR that changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant