Skip to content

Generate stringer files automatically (#841) - #868

Merged
lhchavez merged 1 commit into
release-0.28from
cherry-pick-5e35338d58b589939b599c98ec9e6b44f94de20a-release-0.28
Nov 9, 2021
Merged

Generate stringer files automatically (#841)#868
lhchavez merged 1 commit into
release-0.28from
cherry-pick-5e35338d58b589939b599c98ec9e6b44f94de20a-release-0.28

Conversation

@lhchavez

@lhchavez lhchavez commented Nov 9, 2021

Copy link
Copy Markdown
Contributor

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 5e35338)

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 5e35338)
@lhchavez
lhchavez merged commit 467e9a7 into release-0.28 Nov 9, 2021
@lhchavez
lhchavez deleted the cherry-pick-5e35338d58b589939b599c98ec9e6b44f94de20a-release-0.28 branch November 9, 2021 14:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants