different behavior for extra file trees included in archives
and nfpms
.
#3655
Labels
bug
Something isn't working
archives
and nfpms
.
#3655
What happened?
archives
config works differently fromnpmfs
when including subtrees.This was also discussed on discord: https://discord.com/channels/890434333251362866/1035159881210146916/threads/1054929081990381588
How can we reproduce this?
Let's say we have a file structure:
Case 1: I'd like to include it as is, stripping the
build/
prefix, i.e. include:With npmfs I can do:
When I try the same with
archives
:- "build/webui/**/*"
will outputbuild/webui/react/robots.txt
- dst: webui
will outputwebui/build/webui/react/robots.txt
strip_parent
option with dst will output flattenedwebui/robots.txt
,webui/index.html
,webui/deploy.html
(and incidentally cause a filename collision withindex.html
in this example)i.e.
archives
behaves differently, and there's no way to do what npmfs can do.Case 2: If I want to strip
build/
prefix and include these files under a different path/usr/share/derp
, e.g.with npmfs I can do:
Similarly to case 1, I could not find any way to do that.
goreleaser version
GoReleaser Check
Search
Code of Conduct
Additional context
No response
The text was updated successfully, but these errors were encountered: