Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(415)

Unified Diff: client/cipd/local/deployer.go

Issue 1872363004: cipd: accept a function in EnsureFile (Closed) Base URL: https://chromium.googlesource.com/external/github.com/luci/luci-go@master
Patch Set: rebased Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « client/cipd/client.go ('k') | client/cipd/local/fs.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: client/cipd/local/deployer.go
diff --git a/client/cipd/local/deployer.go b/client/cipd/local/deployer.go
index 0fa1b0982c17e214f53347a761e6e39e8676febf..02b202df9a69d29567201816853695d3e41e8e41 100644
--- a/client/cipd/local/deployer.go
+++ b/client/cipd/local/deployer.go
@@ -362,7 +362,7 @@ func (d *deployerImpl) setCurrentInstanceID(packageDir string, instanceID string
return err
}
if runtime.GOOS == "windows" {
- return d.fs.EnsureFile(filepath.Join(packageDir, currentTxt), strings.NewReader(instanceID))
+ return EnsureFile(d.fs, filepath.Join(packageDir, currentTxt), strings.NewReader(instanceID))
}
return d.fs.EnsureSymlink(filepath.Join(packageDir, currentSymlink), instanceID)
}
« no previous file with comments | « client/cipd/client.go ('k') | client/cipd/local/fs.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698