Skip to content
This repository was archived by the owner on Feb 11, 2025. It is now read-only.

Commit 0be1fec

Browse files
committed
dependabot-1 Build fixes for changes made by nonamedreturns
1 parent d41d69e commit 0be1fec

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

cache/rebuilder.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ func (r rebuilder) Rebuild(srcs []string) error {
9797

9898
// rebuild pushes the archived file to the cache.
9999
func (r rebuilder) rebuild(src, dst string) error {
100-
src, err = filepath.Abs(filepath.Clean(src))
100+
src, err := filepath.Abs(filepath.Clean(src))
101101
if err != nil {
102102
return fmt.Errorf("clean source path, %w", err)
103103
}

cache/restorer.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,8 @@ func (r restorer) Restore(dsts []string) error {
7878

7979
// restore fetches the archived file from the cache and restores to the host machine's file system.
8080
func (r restorer) restore(src, dst string) error {
81+
var err error
82+
8183
pr, pw := io.Pipe()
8284
defer internal.CloseWithErrCapturef(&err, pr, "rebuild, pr close <%s>", dst)
8385

0 commit comments

Comments
 (0)