Generate stringer files automatically #841

Merged
g4s8 merged 6 commits from 543-stringer-generate into main 2021-11-08 08:38:55 -06:00

6 Commits

Author SHA1 Message Date
Kirill 9c737a6d50
ci: export GOPATH 2021-11-08 17:34:55 +03:00
Kirill a64e4a1a75
Update .github/workflows/ci.yml
Co-authored-by: lhchavez <lhchavez@lhchavez.com>
2021-11-08 17:29:12 +03:00
Kirill 0e14c5c3cd
Fixed generate makefile target 2021-11-08 17:09:38 +03:00
Kirill 0cbbc1dc99
Update .github/workflows/ci.yml
Review fixes for workflow

Co-authored-by: lhchavez <lhchavez@lhchavez.com>
2021-11-08 17:08:10 +03:00
Kirill 67bd1b00f6
Show status on stringer check
Apply review comments about stringer workflow steps

Co-authored-by: lhchavez <lhchavez@lhchavez.com>
2021-11-08 11:19:55 +03:00
Kirill f633706986
Generate stringer files automatically
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.

Ticket: #543
2021-10-14 18:02:04 +03:00