New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Glob error when copying files with brackets in the name: '[show].js.nft.json' #2946
Comments
try adding |
I just tested this with plain nfpm, and it works... so it must be something on goreleaser... |
Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
can confirm this only happens through goreleaser, for some reason |
OK, I know why: each packager runs will move the issue and fix it there. |
The nfpm pipe was globbing the input list, and then globbing its result as well. If you add a folder that had a file with, say `[]`, in it, it would later fail the release upon trying to evaluate that as a glob. This is probably some faulty nFPM update in which I should have removed that but didn't. Either way, this should fix it. closes #2946
The nfpm pipe was globbing the input list, and then globbing its result as well. If you add a folder that had a file with, say `[]`, in it, it would later fail the release upon trying to evaluate that as a glob. This is probably some faulty nFPM update in which I should have removed that but didn't. Either way, this should fix it. closes #2946
Appreciate the fast fix, this will let me implement my work without my workaround. |
What happened?
Fail to copy a directory that has weird file names (file names with brackets)
config snippet from Goreleaser
Error
The files it is complaining about
It seems the brackets in the file name is tripping up nfpm. Unfortunately, I do not have control over the file names.
How can we reproduce this?
Attempt to build a package with a source directory containing files with brackets in the name.
nfpm version
Search
Code of Conduct
Additional context
No response
The text was updated successfully, but these errors were encountered: