diff --git a/frontend/dockerfile/dockerfile2llb/convert.go b/frontend/dockerfile/dockerfile2llb/convert.go index d33b5d6111628..e0d3296b85262 100644 --- a/frontend/dockerfile/dockerfile2llb/convert.go +++ b/frontend/dockerfile/dockerfile2llb/convert.go @@ -220,7 +220,7 @@ func toDispatchState(ctx context.Context, dt []byte, opt ConvertOpt) (*dispatchS // lines, but we'll check the warning message to be sure. if warning.URL == linter.RuleNoEmptyContinuations.URL { location := []parser.Range{*warning.Location} - lintWarn(linter.RuleNoEmptyContinuations, "Empty Continuation Line", location) + lintWarn(linter.RuleNoEmptyContinuations, "Empty continuation line", location) } } diff --git a/frontend/dockerfile/dockerfile_test.go b/frontend/dockerfile/dockerfile_test.go index d026fffc11185..2c6778d6ccfdb 100644 --- a/frontend/dockerfile/dockerfile_test.go +++ b/frontend/dockerfile/dockerfile_test.go @@ -6831,7 +6831,7 @@ COPY Dockerfile \ w := warnings[0] - require.Equal(t, "Empty continuation line found in: COPY Dockerfile .", string(w.Short)) + require.Equal(t, "Empty continuation line (Dockerfile:5)", string(w.Short)) require.Equal(t, 1, len(w.Detail)) require.Equal(t, "Empty continuation lines will become errors in a future release", string(w.Detail[0])) require.Equal(t, "https://github.com/moby/moby/pull/33719", w.URL)