-
-
Notifications
You must be signed in to change notification settings - Fork 158
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
fix(#130): Don't propagate semver metadata into deb metadata. #187
Conversation
This pull request is being automatically deployed with Vercel (learn more). 🔍 Inspect: https://vercel.com/goreleaser/nfpm/m1iekkfas |
f023eca
to
cd0eb14
Compare
cd0eb14
to
0657935
Compare
@caarlos0 is there still a point in keeping |
I think the user can still set something on |
Yes but it won't end up anywhere as far as I can see. Until now in this PR I only removed the part here the metadata is populated automatically, but according to the arguments in the issue it should not end up in the packages version information at all, even if set explicitly in the config. In this case we could just remove the entire EDIT: It seems to me that while semver supports metadata, the |
I think removing the auto-metadata seems legit, but if the user wants to do add something manually I don't see a problem... |
That's a valid argument. However, the counter argument would be that this enables users to create |
It depends:
if the user wants to always set the metadata to The problem is that we were always changing it (setting the commit hash), and them the comparison was broken... |
Maybe we can just point that out in docs (to not abuse the metadata risking breaking dpkg version comparison) |
Okay, let's do it this way. I changed the docs and removed the |
Thanks! |
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. |
This pull request closes #130 by not propagating the semver metadata info the
Deb.Metadata
field. As described in the corresponding issue, this is the expected behaviour fordeb
files.EDIT: changed it to wip because I actually don't even know why
Deb.Metadata
exists if it shouldn't be included in the version.