Skip to content

Commit

Permalink
Merge pull request #822 from crazy-max/fix-bake-git-protoc
Browse files Browse the repository at this point in the history
bake: fix protocol detection
  • Loading branch information
tonistiigi committed Nov 2, 2021
2 parents 49342dd + 82b212b commit 7f0e375
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions bake/remote.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,10 @@ type Input struct {
}

func ReadRemoteFiles(ctx context.Context, dis []build.DriverInfo, url string, names []string, pw progress.Writer) ([]File, *Input, error) {
st, filename, ok := detectHTTPContext(url)
var filename string
st, ok := detectGitContext(url)
if !ok {
st, ok = detectGitContext(url)
st, filename, ok = detectHTTPContext(url)
if !ok {
return nil, nil, errors.Errorf("not url context")
}
Expand Down

0 comments on commit 7f0e375

Please sign in to comment.