1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-02-09 13:36:56 +02:00
Kareem March a9ce8f89d4
fix: allow underscores in formula name (#2205)
* fix: allow underscores in formula name

I was trying to create two formulas per release. One signifying the latest and
another with the version explicitly: formula.rb and formula@v0.0.0.rb

The filenames are fine but the formula name for the explicit version
was created as FormulaATv0.0.0 which isn't valid Ruby.

Looking at the function history I couldn't find why underscores were being replaced
since underscores are valid for Ruby identifiers. I opted to replace dots in a formula with
underscores

- 1399a39603
- https://ruby-doc.org/docs/ruby-doc-bundle/Manual/man-1.4/syntax.html#ident

* test: add test for version in formula name

I think underscores are removed to make the Formula name cleaner

* test: re-add old test
2021-05-11 04:50:17 +00:00
2021-04-25 14:20:49 -03:00
2021-04-22 10:45:36 -03:00
2021-05-07 09:44:20 -03:00
2018-02-13 09:49:37 -02:00
2021-04-25 02:02:31 +00:00
2021-04-22 10:45:36 -03:00
2021-04-25 14:20:49 -03:00
2020-03-31 10:04:55 -03:00
2021-02-18 14:54:42 -03:00
2017-12-10 15:17:38 -02:00
2021-03-02 21:29:31 -03:00
2020-11-12 10:53:56 -03:00

GoReleaser Logo

GoReleaser

Deliver Go binaries as fast and easily as possible.


GoReleaser builds Go binaries for several platforms, creates a GitHub release and then pushes a Homebrew formula to a tap repository. All that wrapped in your favorite CI.

This project adheres to the Contributor Covenant code of conduct. By participating, you are expected to uphold this code. We appreciate your contribution. Please refer to our contributing guidelines for further information.

For questions, support and general discussion, please use GitHub Discussions;

Get GoReleaser

Documentation

Documentation is hosted live at https://goreleaser.com

Badges

Release Software License Build status Codecov branch Go Doc SayThanks.io Powered By: GoReleaser Backers on Open Collective Sponsors on Open Collective Conventional Commits

Sponsors

Does your company use goreleaser? Help keep the project bug-free and feature rich by sponsoring the project.

Backers

Love our work and community? Become a backer.

Contributors

This project exists thanks to all the people who contribute. [Contribute].

Stargazers over time

Stargazers over time

Languages
Go 93.4%
Nix 2.1%
Ruby 2%
YAML 1%
HTML 0.6%
Other 0.9%