Skip to content

Commit

Permalink
dependabot-1 Build fixes for changes made by nonamedreturns
Browse files Browse the repository at this point in the history
  • Loading branch information
bdebyl committed Jul 15, 2022
1 parent d41d69e commit 0be1fec
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion cache/rebuilder.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ func (r rebuilder) Rebuild(srcs []string) error {

// rebuild pushes the archived file to the cache.
func (r rebuilder) rebuild(src, dst string) error {
src, err = filepath.Abs(filepath.Clean(src))
src, err := filepath.Abs(filepath.Clean(src))
if err != nil {
return fmt.Errorf("clean source path, %w", err)
}
Expand Down
2 changes: 2 additions & 0 deletions cache/restorer.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,8 @@ func (r restorer) Restore(dsts []string) error {

// restore fetches the archived file from the cache and restores to the host machine's file system.
func (r restorer) restore(src, dst string) error {
var err error

pr, pw := io.Pipe()
defer internal.CloseWithErrCapturef(&err, pr, "rebuild, pr close <%s>", dst)

Expand Down

0 comments on commit 0be1fec

Please sign in to comment.