Skip to content

feat: place custom_block on top of cask definition #5831

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

Merged

Conversation

sushichan044
Copy link
Contributor

@sushichan044 sushichan044 commented Jun 12, 2025

Changes

Moves the custom_block configuration from the bottom to the top of generated Homebrew Cask definitions to enable dynamic URL construction through custom Ruby modules.

Reason

Related Information

https://github.com/orgs/goreleaser/discussions/5817#discussion-8431103

@pull-request-size pull-request-size bot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Jun 12, 2025
Comment on lines +6 to +8
{{- end }}

{{ end }}
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This templating ensures a clean line break is added, but only when a custom block is present.

@sushichan044 sushichan044 changed the title [WIP] hoist custom_block to top in Homebrew Casks [WIP] place custom_block to top in Homebrew Casks Jun 12, 2025
@sushichan044 sushichan044 changed the title [WIP] place custom_block to top in Homebrew Casks [WIP] place custom_block on top of cask definition Jun 12, 2025
@sushichan044 sushichan044 changed the title [WIP] place custom_block on top of cask definition feat: place custom_block on top of cask definition Jun 16, 2025
@sushichan044 sushichan044 marked this pull request as ready for review June 16, 2025 02:06
@caarlos0 caarlos0 merged commit eaaf0c5 into goreleaser:main Jun 22, 2025
15 checks passed
@caarlos0
Copy link
Member

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants