Generate stringer files automatically (#841) #869

Merged
lhchavez merged 1 commits from cherry-pick-5e35338d58b589939b599c98ec9e6b44f94de20a-release-0.27 into release-0.27 2021-11-09 08:49:21 -06:00

1 Commits

Author SHA1 Message Date
Kirill 7c0c532768 Generate stringer files automatically (#841)
Added `stringer` annotations to `git.go` for `ErrorClass` and
`ErrorCode`. Added `generate` rule for `Makefile` to generate
string representations for these types (first building cgo files
in `_obj` dir to get C constants). Finally, updated `ci` actions
workflow to check that generated files are up to date.

Fixes: #543
(cherry picked from commit 5e35338d58)
2021-11-09 06:44:55 -08:00