We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 05213db + 6b44563 commit 966302eCopy full SHA for 966302e
frontend/dockerfile/dockerfile2llb/convert.go
@@ -2117,7 +2117,14 @@ func commonImageNames() []string {
2117
}
2118
2119
func isHTTPSource(src string) bool {
2120
- return strings.HasPrefix(src, "http://") || strings.HasPrefix(src, "https://")
+ if !strings.HasPrefix(src, "http://") && !strings.HasPrefix(src, "https://") {
2121
+ return false
2122
+ }
2123
+ // https://github.com/ORG/REPO.git is a git source, not an http source
2124
+ if gitRef, gitErr := gitutil.ParseGitRef(src); gitRef != nil && gitErr == nil {
2125
2126
2127
+ return true
2128
2129
2130
func isEnabledForStage(stage string, value string) bool {
0 commit comments