pkg/controller/globalroutediscovery/globalroutediscovery_controller.go:296:93: conversion from int to string yields a string of one rune, not a string of digits (did you mean fmt.Sprint(x)?)
pkg/controller/globalroutediscovery/globalroutediscovery_controller.go:301:113: conversion from int to string yields a string of one rune, not a string of digits (did you mean fmt.Sprint(x)?)
pkg/controller/globalroutediscovery/globalroutediscovery_controller.go:306:81: conversion from int to string yields a string of one rune, not a string of digits (did you mean fmt.Sprint(x)?)
pkg/controller/globalroutediscovery/globalroutediscovery_controller.go:311:101: conversion from int to string yields a string of one rune, not a string of digits (did you mean fmt.Sprint(x)?)
make: *** [vet] Error 2
The offending code seems to be this:
log.Error(err, "route's host not matching", "route[0]", route0.Route.Spec.Host, "route["+string(i)+"]", route.Route.Spec.Host)
More specifically, this code. "route["+string(i)+"]"
When running
make
, go vet fails:This appears be a caused by a new warning in vet in go 1.15.
The offending code seems to be this:
log.Error(err, "route's host not matching", "route[0]", route0.Route.Spec.Host, "route["+string(i)+"]", route.Route.Spec.Host)
More specifically, this code.
"route["+string(i)+"]"