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

Small refactor of the code for better structure, error propagation and preperation for extentions #2

Merged
merged 3 commits into from
Jan 10, 2025

Conversation

cmainas
Copy link
Collaborator

@cmainas cmainas commented Jan 10, 2025

Make some necessary change to improve the way bunny show errors and prepare the code to add support for new file formats.

Change the way we represent copy of files in the packInstructions
struct. Instead of using the instructions struct of docker frontend, use
a map of strings, where the key is the source of the file and the
value is the destination of the file.

Signed-off-by: Charalampos Mainas <[email protected]>
Restructure the code, in order to allow the creation of a package for
bunny. Furthermore, it will help to have a better structure of the code
and improve the understandinf and readability.

However, much more work is required.

Signed-off-by: Charalampos Mainas <[email protected]>
When bunny acts as a frontend for buildkit, printing in stdout will
cause a fail. Instead, all errors should be reported as a return value
of the function we passs as an argument in the grpc client creation.

Moreover, this commit improves the error formating, but more work is
required.

Signed-off-by: Charalampos Mainas <[email protected]>
@cmainas cmainas merged commit f767f6c into main Jan 10, 2025
3 checks passed
@cmainas cmainas deleted the small_ref branch January 10, 2025 18:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant