Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CI additions, GoReleaser config and fixes to issues reported by golint and gocritic #136

Open
wants to merge 8 commits into
base: master
Choose a base branch
from

Conversation

jessp01
Copy link

@jessp01 jessp01 commented Feb 24, 2025

Changes to test.yml:

  • Run golint, gofmt, go vet, go ineffassign
  • Run go test with -v (make test does not)
  • Run on every push and pull request to all branches (not only master)
  • Use ubuntu-latest image and run against Go 1.22 as well

GoReleaser config:

Produce binaries for Linux, Darwin (what people refer to as MacOS and shouldn't), FreeBSD and NetBSD,
as well as Deb and RPM packages.

The hook is triggered when a new tag is pushed.
You can see an example of the output here
That release was created automatically following the push of a new tag.

Fixes to issues reported by golint and gocritic:

  • md2man.go:51:4: exitAfterDefer: os.Exit will exit, and defer func(){...}(...) will not run
  • md2man/roff.go:56:24: exported func NewRoffRenderer returns unexported type *md2man.roffRenderer, which can be annoying to use

- md2man.go:51:4: exitAfterDefer: os.Exit will exit, and `defer func(){...}(...)` will not run
- md2man/roff.go:56:24: exported func NewRoffRenderer returns unexported type *md2man.roffRenderer, which can be annoying to use
- Run golint, gofmt, go vet, go ineffassign
- Run `go test` with -v (make test does not)
- Run on every push and pull request to all branches (not only master)
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.

1 participant