Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@matlec
Copy link
Contributor

@matlec matlec commented Mar 13, 2020

We use nfpm for creating Debian packages. In our nfpm.yaml file we make use of glob patterns for files. In the following example we copy all artifacts from a to /tmp/a and from b to /tmp/b:

files:
  "./a/**/*": "/tmp/a/"
  "./b/**/*": "/tmp/b/"

nfpm does not work as expected when the directories a or b only contain a single file (e.g. ./a/test.txt). In this case nfpm creates a deb package that contains the content of ./a/test.txt as a file at the path /tmp/a. Instead we expect ./a/test.txt to be packaged as file at the path /tmp/a/test.txt.

For our use cases this fix is kind of important and the only work-around right now is to make sure that there are always at least two files below a and b.

if the source directory contains only a single file
@matlec
Copy link
Contributor Author

matlec commented Mar 16, 2020

It would be nice if you could push a new version that contains this fix :-)

@caarlos0 caarlos0 merged commit 9214674 into goreleaser:master Mar 16, 2020
@caarlos0
Copy link
Member

thanks for the PR 🚀

@caarlos0
Copy link
Member

It would be nice if you could push a new version that contains this fix :-)

releasing...

@matlec
Copy link
Contributor Author

matlec commented Mar 16, 2020

Thank you, works like a charm

@caarlos0
Copy link
Member

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@goreleaser goreleaser locked as resolved and limited conversation to collaborators Nov 17, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants