builder/remotecontext/detect.go
Function withDockerfileFromContext
has 6 return statements (exceeds 4 allowed). Open
Open
func withDockerfileFromContext(c modifiableContext, dockerfilePath string) (builder.Source, *parser.Result, error) {
df, err := openAt(c, dockerfilePath)
if err != nil {
if errors.Is(err, os.ErrNotExist) {
if dockerfilePath == builder.DefaultDockerfileName {