Skip to content

fix(backends gallery): delete dangling dirs if installation failed #5729

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

Merged
merged 1 commit into from
Jun 26, 2025

Conversation

mudler
Copy link
Owner

@mudler mudler commented Jun 26, 2025

Description

For context: #5693 (comment)

Notes for Reviewers

Signed commits

  • Yes, I signed my commits.

Signed-off-by: Ettore Di Giacinto <mudler@localai.io>
@mudler mudler added the bug Something isn't working label Jun 26, 2025
Copy link

netlify bot commented Jun 26, 2025

Deploy Preview for localai ready!

Name Link
🔨 Latest commit d77674e
🔍 Latest deploy log https://app.netlify.com/projects/localai/deploys/685d54f3d75e2a000874d7a9
😎 Deploy Preview https://deploy-preview-5729--localai.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@@ -31,6 +31,10 @@
}
if err != nil {
log.Error().Err(err).Msgf("error installing backend %s", op.GalleryElementName)
if !op.Delete {
// If we didn't install the backend, we need to make sure we don't have a leftover directory
gallery.DeleteBackendFromSystem(g.appConfig.BackendsPath, op.GalleryElementName)

Check warning

Code scanning / gosec

Errors unhandled Warning

Errors unhandled
@mudler mudler merged commit bcccee3 into master Jun 26, 2025
25 of 28 checks passed
@mudler mudler deleted the fix/delete_leftovers_if_error branch June 26, 2025 15:38
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.

1 participant