Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a7f6cc8

Browse files
authored
[utils] Fail immediately on extraction errors (mudler#9926)
utils: fail immediately on extraction errors Setting ContinueOnError to false ensures that ExtractArchive does not leave the model or backend directory in an inconsistent state if a partial failure occurs. This improves robustness against malformed archives or unexpected I/O issues during installation. Signed-off-by: RinZ27 <[email protected]>
1 parent f15b917 commit a7f6cc8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pkg/utils/untar.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ func ExtractArchive(archive, dst string) error {
3636
OverwriteExisting: true,
3737
MkdirAll: true,
3838
ImplicitTopLevelFolder: false,
39-
ContinueOnError: true,
39+
ContinueOnError: false,
4040
}
4141

4242
switch v := uaIface.(type) {

0 commit comments

Comments
 (0)