Fix golang lint

What it does

In the Makefile, the golang linter is old and fails when used locally :

> make lint

(...)
ERRO Can't read config: can't unmarshal config by viper: 1 error(s) decoding:

* 'Version' expected a map, got 'string'
make: *** [Makefile:82: lint] Error 3

The present MR fixes this failure failure and ensure it will not happen again

  • Set the golang linter version to the same one as in the CI
  • Track its version

Test

  • Local make lint works
  • The regex tests is here

Reference

sylva-units-operator!602 (merged)

Edited by Priya Goyal

Merge request reports

Loading
Loading