Add String method so quieted output displays properly

Fixes #1089

Signed-off-by: Zachary Romero <zacromero3@gmail.com>
Upstream-commit: b6cf6d87ae
Component: cli
This commit is contained in:
Zachary Romero
2018-05-29 05:30:17 +03:00
parent 776d9e8d2e
commit 40e9cf63c8

View File

@ -122,6 +122,10 @@ func (bw *bufferedWriter) flushBuffer() {
bw.mu.Unlock()
}
func (bw *bufferedWriter) String() string {
return fmt.Sprintf("%s", bw.Writer)
}
func getBuildSharedKey(dir string) (string, error) {
// build session is hash of build dir with node based randomness
s := sha256.Sum256([]byte(fmt.Sprintf("%s:%s", tryNodeIdentifier(), dir)))