libgit2 / git2go

Git to Go; bindings for libgit2. Like McDonald's but tastier.
MIT License
1.93k stars 316 forks source link

Generate stringer files automatically #841

Closed g4s8 closed 2 years ago

g4s8 commented 3 years ago

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

g4s8 commented 2 years ago

@lhchavez thanks for review! Please check new changes and answers.

g4s8 commented 2 years ago

Exported GOPATH in https://github.com/libgit2/git2go/pull/841/commits/9c737a6d50a84f16b4387ddd109ef0fbf4a49b5c