From b6f10654ea5ac4054401a719c861ab8bc60c58a1 Mon Sep 17 00:00:00 2001 From: Yuichiro Kaneko Date: Tue, 3 Jul 2018 09:12:56 +0900 Subject: [PATCH] Update documents of `Detect` By 0296797f0f39477d675128c93c1646b3186937ee, `progressReader` and `remoteURL` were removed from arguments. So developers who use `Detect` not need to care about when `ProgressReaderFunc` is used. Signed-off-by: Yuichiro Kaneko Upstream-commit: 0bbd476ceb8da679f818df529cc917ec807a16af Component: engine --- components/engine/builder/remotecontext/detect.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/components/engine/builder/remotecontext/detect.go b/components/engine/builder/remotecontext/detect.go index aaace269e9..49b196ed7b 100644 --- a/components/engine/builder/remotecontext/detect.go +++ b/components/engine/builder/remotecontext/detect.go @@ -22,8 +22,7 @@ import ( const ClientSessionRemote = "client-session" // Detect returns a context and dockerfile from remote location or local -// archive. progressReader is only used if remoteURL is actually a URL -// (not empty, and not a Git endpoint). +// archive. func Detect(config backend.BuildConfig) (remote builder.Source, dockerfile *parser.Result, err error) { remoteURL := config.Options.RemoteContext dockerfilePath := config.Options.Dockerfile