Skip to content

Commit

Permalink
fix: close binary copy destination files when done
Browse files Browse the repository at this point in the history
  • Loading branch information
femnad committed Jan 6, 2024
1 parent ef62f80 commit 56d39ff
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (
)

const (
version = "0.27.0"
version = "0.27.1"
)

type args struct {
Expand Down
5 changes: 5 additions & 0 deletions provision/release.go
Original file line number Diff line number Diff line change
Expand Up @@ -520,6 +520,11 @@ func copyBinary(release entity.Release, hint extractionHint) (info ReleaseInfo,
return
}

err = dst.Close()
if err != nil {
return
}

return ReleaseInfo{execCandidate: name, hasRootDir: true, target: target}, nil
}

Expand Down

0 comments on commit 56d39ff

Please sign in to comment.