Misc. small changes/refactoring (#712)

This commit is contained in:
Taylor Barrella
2019-07-23 15:10:22 -07:00
committed by Sharif Elgamal
parent 19fb253e9c
commit 3422d5572a
9 changed files with 24 additions and 31 deletions
+1 -1
View File
@@ -208,12 +208,12 @@ func resolveSourceContext() error {
}
if opts.Bucket != "" {
if !strings.Contains(opts.Bucket, "://") {
// if no prefix use Google Cloud Storage as default for backwards compatibility
opts.SrcContext = constants.GCSBuildContextPrefix + opts.Bucket
} else {
opts.SrcContext = opts.Bucket
}
}
// if no prefix use Google Cloud Storage as default for backwards compatibility
contextExecutor, err := buildcontext.GetBuildContext(opts.SrcContext)
if err != nil {
return err