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

Check for already-existing image before building image #113

Merged
merged 1 commit into from Jul 19, 2022

Conversation

Szubie
Copy link
Collaborator

@Szubie Szubie commented Jul 19, 2022

Currently bravetools will silently overwrite existing images. At best, this can be a waste of time and resources rebuilding an identical image. However, it is also possible that the user intended to update the image to a new version and forgot to increment the version, which would wipe the old image version without warning.

It would be safer to return an error if the image exists instead of overwriting it. The err type is checked so that we can prompt user with the steps to take if they want to replace existing image in err message (first remove image with brave remove -i [name]).

error if the image exists instead of overwriting it. Prompt user with
what steps to take if they want to replace existing image in err message.
@idroz idroz merged commit 91e93b1 into bravetools:master Jul 19, 2022
@Szubie Szubie deleted the img-exists-err branch July 19, 2022 16:28
@Szubie Szubie mentioned this pull request Jul 22, 2022
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.

None yet

2 participants