-
-
Notifications
You must be signed in to change notification settings - Fork 66
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
Declare version with "Version" rather than "Package-Version" #264
Conversation
Thanks! Ah great, consistency going out the window. (I use Please add the reason why we want this to the commit message as well. (Because I don't actually want this. I am forced to do it and might forget why.) |
ecb09f9
to
c235b08
Compare
Done
Sorry for the bother. I could also have tried to change |
c235b08
to
ef987c8
Compare
I cannot wrap my head around these errors (or rather raised warnings). Firstly it's not true, these variables are lexically bound. And this code has existed for a while without this happening and I just pushed other changes that also include this code without this happening either. But I rebased and pushed your branch and it is still happening, so it wasn't just a flux. And yet, your change seems completely unrelated and my CI scripts don't seem to care about either of these two variables. Can you explain it? |
c28cc92
to
d7673f1
Compare
Emacs builtin packages are supposed to specify their version using the header "Version" for their version to be correctly stored in the variable package--builtins. This is because the function finder-compile-keywords, responsible for setting this variable, parses the source files looking for this exact header. This does not break package, since the function package-buffer-info looks for both Package-Version and Version.
d7673f1
to
9c0a6cd
Compare
I've started using The version in Emacs already differs from what we have here (see ed78d3b), so I'll only switch to this header in Emacs (I'm already doing the same for |
You mean this change should be part of commit ed78d3b ? This would certainly make sense to bundle it with all the other changes you must do when moving from here to emacs. This would require amending ed78d3b. I don't think I can do this with a PR though. |
Yes. I'll do this myself (I also have to make other changes.) |
This has now landed in Emacs' There was some turbulence. 🥴 |
Thanks for bringing this to my attention! |
Hello,
I assume this is the place to report this, rather than the emacs mailing list.
Since
transient
is now a builtin package of emacs, the variablepackage--builtins
in thefinder-inf
library stores its name, version and a short description :The version is not reported properly since the header keyword used to declare the version in
transient
isPackage-Version
, which ispackage
-specific, rather thanVersion
, which is the standard way (finder
, the library that setspackage--builtins
, looks for this header only).package
looks for bothPackage-Version
andVersion
headers, so this should not break anything.Best,
Aymeric Agon-Rambosson