From 9d1eb857ea3b15bb18ae3cf3aadbceac08b50f8d Mon Sep 17 00:00:00 2001 From: Omar Polo Date: Mon, 15 Jun 2026 10:00:20 +0000 Subject: [PATCH] pkg create: add missing snap.Close() --- subcommands/pkg/create.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/subcommands/pkg/create.go b/subcommands/pkg/create.go index aa73409fc..eef233aba 100644 --- a/subcommands/pkg/create.go +++ b/subcommands/pkg/create.go @@ -181,6 +181,10 @@ func (cmd *PkgCreate) Execute(ctx *appcontext.AppContext, _ *repository.Reposito return 1, fmt.Errorf("failed to commit snapshot: %w", err) } + if err := snap.Close(); err != nil { + return 1, fmt.Errorf("failed to close snapshot: %w", err) + } + // We are done with everything we can now stop the backup routines. repoWriter.PackerManager.Wait() err = repoWriter.CommitTransaction(identifier)