1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-01-08 03:31:59 +02:00
goreleaser/internal/pipe
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
..
archive chore: gofumpt & lint (#2190) 2021-04-25 14:20:49 -03:00
artifactory chore: gofumpt & lint (#2190) 2021-04-25 14:20:49 -03:00
before chore: gofumpt & lint (#2190) 2021-04-25 14:20:49 -03:00
blob chore: gofumpt & lint (#2190) 2021-04-25 14:20:49 -03:00
brew fix: allow underscores in formula name (#2205) 2021-05-11 04:50:17 +00:00
build chore: gofumpt & lint (#2190) 2021-04-25 14:20:49 -03:00
changelog chore: gofumpt & lint (#2190) 2021-04-25 14:20:49 -03:00
checksums chore: gofumpt & lint (#2190) 2021-04-25 14:20:49 -03:00
custompublishers fix: improve output a bit (#2174) 2021-04-19 09:31:57 -03:00
defaults chore: gofumpt & lint (#2190) 2021-04-25 14:20:49 -03:00
dist chore: gofumpt & lint (#2190) 2021-04-25 14:20:49 -03:00
docker refactor: use os and io packages intead of ioutil when possible (#2189) 2021-04-25 13:00:51 -03:00
effectiveconfig chore: gofumpt & lint (#2190) 2021-04-25 14:20:49 -03:00
env chore: gofumpt & lint (#2190) 2021-04-25 14:20:49 -03:00
git refactor: use os and io packages intead of ioutil when possible (#2189) 2021-04-25 13:00:51 -03:00
gomod fix: fd leak on gomod pipe (#2188) 2021-04-25 00:08:58 -03:00
milestone chore: gofumpt & lint (#2190) 2021-04-25 14:20:49 -03:00
nfpm feat: add %pretrans %posttrans scriptlets (#2191) 2021-04-28 13:01:03 +00:00
project chore: gofumpt & lint (#2190) 2021-04-25 14:20:49 -03:00
publish chore: gofumpt & lint (#2190) 2021-04-25 14:20:49 -03:00
release chore: gofumpt & lint (#2190) 2021-04-25 14:20:49 -03:00
scoop chore: gofumpt & lint (#2190) 2021-04-25 14:20:49 -03:00
semver fix: log semver errors when snapshot (#2084) 2021-03-01 14:18:57 -03:00
sign chore: gofumpt & lint (#2190) 2021-04-25 14:20:49 -03:00
snapcraft chore: gofumpt & lint (#2190) 2021-04-25 14:20:49 -03:00
snapshot chore: gofumpt & lint (#2190) 2021-04-25 14:20:49 -03:00
sourcearchive chore: gofumpt & lint (#2190) 2021-04-25 14:20:49 -03:00
upload chore: gofumpt & lint (#2190) 2021-04-25 14:20:49 -03:00
pipe_test.go fix: improve output a bit (#2174) 2021-04-19 09:31:57 -03:00
pipe.go chore: gofumpt & lint (#2190) 2021-04-25 14:20:49 -03:00