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

Documentation needed #10

Open
grzesuav opened this issue Mar 9, 2024 · 4 comments
Open

Documentation needed #10

grzesuav opened this issue Mar 9, 2024 · 4 comments

Comments

@grzesuav
Copy link

grzesuav commented Mar 9, 2024

hi, I tried to use it and it worked out of the box, however I have few questions:

  • how t configure it ? I.e. to use given version of goreleaser ? Does it use the version on the path ?
  • what responsibility does it take from semrel ? It replaces the release phase ?
@grzesuav
Copy link
Author

Also, how I can pass argument to goreleaser ?

@grzesuav
Copy link
Author

Also, I found a bug (or misued the hook) - for me the footer setting was not working, was able to fix it by using exec hook to just create ta, and then run bare goreleaser on tags - https://github.com/orgs/goreleaser/discussions/4680#discussioncomment-8750286

@christophwitzko
Copy link
Member

Hi @grzesuav, first of all, sorry for the lack of documentation 🙏

The plugin uses a fork of GoReleaser (https://github.com/go-semantic-release/hooks-goreleaser/tree/main/goreleaser) because go-semantic-release has to inject itself directly into the release pipeline (unfortunately GoReleaser does not provide the necessary public APIs). The only way to configure GoReleaser is though the .goreleaser.yaml config.

You can find the used GoReleaser version in the go.mod file.

go-semantic-release has its own changelog generator. Therefore, it disables GoReleaser's changelog generation and renders all changelog config options (e.g.,footer) non-functional. To support the footer config, I would extend the existing changelog generator plugin.

The main idea when I developed this plugin was to have an automatic setup to cross-compile your go binaries.

@grzesuav
Copy link
Author

Got it, thanks @christophwitzko ! I am not very familiar with design, do you have idea of how goreleaser config could be read from .goreleaserrc config instead of be substituted ?

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

No branches or pull requests

2 participants