diff --git a/go.mod b/go.mod index 2b1b801..03487b2 100644 --- a/go.mod +++ b/go.mod @@ -5,7 +5,7 @@ go 1.12 require ( github.com/buildpack/libbuildpack v1.20.0 github.com/cloudfoundry/dagger v0.0.0-20190708210935-79ba5190b629 - github.com/cloudfoundry/libcfbuildpack v1.78.1-0.20190718180120-55da0fdbe1a4 + github.com/cloudfoundry/libcfbuildpack v1.79.0 github.com/golang/mock v1.3.1 github.com/google/go-cmp v0.3.0 github.com/onsi/gomega v1.5.0 diff --git a/go.sum b/go.sum index ca74f84..37eb009 100644 --- a/go.sum +++ b/go.sum @@ -11,8 +11,8 @@ github.com/cloudfoundry/dagger v0.0.0-20190708210935-79ba5190b629 h1:Ij34QrApV5n github.com/cloudfoundry/dagger v0.0.0-20190708210935-79ba5190b629/go.mod h1:PXeUHc4d2vAVO/31jFE6uD09w/yFfzs4kcayAVEvnEI= github.com/cloudfoundry/libcfbuildpack v1.76.0 h1:oMTv35mjk5Jogzy2sshVXHyolDWnWHMfANQ0UooXJq0= github.com/cloudfoundry/libcfbuildpack v1.76.0/go.mod h1:QGm+nzixn579dvQNlS7ZQET541y2hEpZ0/5uNxkQ04Y= -github.com/cloudfoundry/libcfbuildpack v1.78.1-0.20190718180120-55da0fdbe1a4 h1:N6vrtX1uFcZPPdeWiykpzDKiYlE5k6OA2wOX0HRUeTQ= -github.com/cloudfoundry/libcfbuildpack v1.78.1-0.20190718180120-55da0fdbe1a4/go.mod h1:nqxdAEdvcSYRZqsFL+uV1+coatU1pqz3EyPST4/e8Ls= +github.com/cloudfoundry/libcfbuildpack v1.79.0 h1:rpJrgo7eFdikLFOiOI4smsVo3jxjMGKyJH+4IVdXo0Y= +github.com/cloudfoundry/libcfbuildpack v1.79.0/go.mod h1:nqxdAEdvcSYRZqsFL+uV1+coatU1pqz3EyPST4/e8Ls= github.com/fatih/color v1.7.0 h1:DkWD4oS2D8LGGgTQ6IvwJJXSL5Vp2ffcQg58nFV38Ys= github.com/fatih/color v1.7.0/go.mod h1:Zm6kSWBoL9eyXnKyktHP6abPY2pDugNf5KwzbycvMj4= github.com/fsnotify/fsnotify v1.4.7 h1:IXs+QLmnXW2CcXuY+8Mzv/fWEsPGWxqefPtCP5CnV9I= diff --git a/vendor/github.com/cloudfoundry/libcfbuildpack/logger/logger.go b/vendor/github.com/cloudfoundry/libcfbuildpack/logger/logger.go index a89ebb1..b662231 100644 --- a/vendor/github.com/cloudfoundry/libcfbuildpack/logger/logger.go +++ b/vendor/github.com/cloudfoundry/libcfbuildpack/logger/logger.go @@ -100,7 +100,7 @@ func (l Logger) Body(format string, args ...interface{}) { l.Info(color.New(color.Faint).Sprint( strings.ReplaceAll( - lines.ReplaceAllString(fmt.Sprintf(format, args...), BodyIndent), + l.BodyIndent(format, args...), fmt.Sprintf("\x1b[%dm", color.Reset), fmt.Sprintf("\x1b[%dm\x1b[%dm", color.Reset, color.Faint)))) } @@ -114,6 +114,11 @@ func (l Logger) BodyError(format string, args ...interface{}) { l.Body(error.Sprintf(format, args...)) } +// BodyIndent indents each line of a log message to the BodyIndent offset. +func (l Logger) BodyIndent(format string, args ...interface{}) string { + return lines.ReplaceAllString(fmt.Sprintf(format, args...), BodyIndent) +} + // BodyWarning prints the log message colored yellow and bold with each line indented four spaces. func (l Logger) BodyWarning(format string, args ...interface{}) { if !l.IsInfoEnabled() { diff --git a/vendor/modules.txt b/vendor/modules.txt index 5497262..83c179c 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -16,7 +16,7 @@ github.com/buildpack/libbuildpack/services github.com/buildpack/libbuildpack/stack # github.com/cloudfoundry/dagger v0.0.0-20190708210935-79ba5190b629 github.com/cloudfoundry/dagger -# github.com/cloudfoundry/libcfbuildpack v1.78.1-0.20190718180120-55da0fdbe1a4 +# github.com/cloudfoundry/libcfbuildpack v1.79.0 github.com/cloudfoundry/libcfbuildpack/build github.com/cloudfoundry/libcfbuildpack/detect github.com/cloudfoundry/libcfbuildpack/helper