Skip to content

Commit

Permalink
fix: close state file (#3130)
Browse files Browse the repository at this point in the history
Signed-off-by: guoguangwu <guoguangwug@gmail.com>
  • Loading branch information
testwill authored May 23, 2024
1 parent 8e5e8b7 commit 2f465f4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion CONTRIBUTORS.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,4 +97,5 @@ and we will add you. **All** contributors belong here. 💯
- [Ray Terrill](https://github.com/rayterrill)
- [Kim Christensen](https://github.com/kichristensen)
- [Shivam](https://github.com/Bharadwajshivam28)
- [David Gannon](https://github.com/dgannon991)
- [David Gannon](https://github.com/dgannon991)
- [guangwu guo](https://github.com/testwill)
1 change: 1 addition & 0 deletions pkg/runtime/runtime_manifest.go
Original file line number Diff line number Diff line change
Expand Up @@ -687,6 +687,7 @@ func (m *RuntimeManifest) packStateBag(ctx context.Context) error {
if err != nil {
return log.Error(fmt.Errorf("error reading state file %s for variable %s: %w", s.Path, s.Name, err))
}
defer f.Close()

_, err = io.Copy(tw, f)
if err != nil {
Expand Down

0 comments on commit 2f465f4

Please sign in to comment.