1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-01-08 03:31:59 +02:00
goreleaser/internal/pipe/brew
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
..
testdata fix: brew: check cpu (#2062) 2021-02-17 08:14:50 +00:00
brew_test.go fix: allow underscores in formula name (#2205) 2021-05-11 04:50:17 +00:00
brew.go fix: allow underscores in formula name (#2205) 2021-05-11 04:50:17 +00:00
doc.go refactor: better package organization 2018-09-12 14:18:01 -03:00
template.go fix: brew: check cpu (#2062) 2021-02-17 08:14:50 +00:00