Browse code

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 <spiketeika@gmail.com>

Yuichiro Kaneko authored on 2018/07/03 09:12:56
Showing 1 changed files
... ...
@@ -22,8 +22,7 @@ import (
22 22
 const ClientSessionRemote = "client-session"
23 23
 
24 24
 // Detect returns a context and dockerfile from remote location or local
25
-// archive. progressReader is only used if remoteURL is actually a URL
26
-// (not empty, and not a Git endpoint).
25
+// archive.
27 26
 func Detect(config backend.BuildConfig) (remote builder.Source, dockerfile *parser.Result, err error) {
28 27
 	remoteURL := config.Options.RemoteContext
29 28
 	dockerfilePath := config.Options.Dockerfile