1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-01-10 03:47:03 +02:00
goreleaser/internal/pipe/archive
Carlos Alexandro Becker e7f4b10fc6
fix: prevent having whitespaces in artifact names (#4515)
refs #4513

this does not prevent the `dist` filepath to have spaces in it, although
that's likely less of an issue, but it will remove the spaces from
artifact's names.

Ideally, we could add a `tmpl.ApplyTrim` (or similar) that applies and
trim spaces, and use it everywhere it makes sense (which is likely a lot
of places).

Doing it on regular `Apply` might break things like release
footers/headers, which usually rely on empty lines (although maybe its
easier to treat those cases differently then).

Anyway, still thinking about it. Opinions are welcome :)

---------

Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
2024-01-07 14:16:33 -03:00
..
testdata/a feat: file mappings in archives (#2347) 2021-07-21 22:09:02 -03:00
archive_meta_test.go feat: improve template error handling (#4256) 2023-08-24 22:06:12 -03:00
archive_test.go fix: prevent having whitespaces in artifact names (#4515) 2024-01-07 14:16:33 -03:00
archive.go refactor: properly annotate deprecated options 2023-08-04 14:47:54 +00:00