mirror of
https://gitea.com/Lydanne/buildx.git
synced 2025-05-18 00:47:48 +08:00
add length check for lint message regex result
Signed-off-by: Talon Bowler <talon.bowler@docker.com>
This commit is contained in:
parent
d342cb9d03
commit
1e916ae6c6
@ -459,7 +459,7 @@ func kebabToCamel(s string) string {
|
|||||||
func (mr *lintMetricRecorder) Record(ss *client.SolveStatus) {
|
func (mr *lintMetricRecorder) Record(ss *client.SolveStatus) {
|
||||||
for _, warning := range ss.Warnings {
|
for _, warning := range ss.Warnings {
|
||||||
m := reLintMessage.FindSubmatch([]byte(warning.URL))
|
m := reLintMessage.FindSubmatch([]byte(warning.URL))
|
||||||
if m == nil {
|
if len(m) < 2 {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user