Generate stringer files automatically (#841) #866

Merged
lhchavez merged 1 commits from cherry-pick-5e35338d58b589939b599c98ec9e6b44f94de20a-release-1.0 into release-1.0 2021-11-09 08:48:31 -06:00

1 Commits

Author SHA1 Message Date
Kirill a5203f7a72 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:52 -08:00