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
unexpected behavior in archive:files: section -- how to specify no additional files #602
Comments
hmm, I think this never worked this way, if it did, it was a bug before... the problem is that the default is set to license and etc, so if you leave it empty it will add those files anyway. adding the not sure what is the right thing to do here... |
ha! you are right. It always worked that way. I just checked some old packages I made using goreleaser. I never noticed! might just be a documentation bug... or maybe?? if you put the binary name only in the files section then, that's a special case.
means "just the binary" ? Maybe that is less gross than "none*" really not a big deal either way. I can live with "none*" |
yeah, I'm not sure as well... looking at the sources, there is not a good retro-compatible way of adding that... I think |
dunno, probably was drunk at the time refs #602
I'll just point that hack down on the docs... |
More information here: goreleaser/goreleaser#602
Is there a reason you choose to use a glob instead of a non glob like:
|
Yes, if you choose a glob that doesn’t match any files, z-glob (lib uses for globs) returns am empty list. If you pass a non-glob and the file doesn’t exist, it returns a file not found kind of error... If recall correctly, that’s it 🤔 |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Prerequisites
For more information, see the
CONTRIBUTING
guide.Description
It's not clear how to specify no additional files to be included in the archive. Bug? Doc Bug? Feature?
Environment
Steps to Reproduce
i wanted "classic goreleaser" behavior where the tar.gz contained just the binary. Currently, it tries to add license, readme and changelog info.
In the
archive
stanza, in thefiles
section, I triedyou can screw around in
This could be just a documentation bug.
The text was updated successfully, but these errors were encountered: