1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-01-10 03:47:03 +02:00
goreleaser/internal/artifact
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 refactory: make easier to manage merges with pro (#3178) 2022-06-22 01:48:11 -03:00
.gitignore fix: improved artifact add logs 2017-12-18 09:19:02 -02:00
artifact_test.go fix: prevent having whitespaces in artifact names (#4515) 2024-01-07 14:16:33 -03:00
artifact.go fix: prevent having whitespaces in artifact names (#4515) 2024-01-07 14:16:33 -03:00