emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [nongnu] elpa/cider ff1de2bd22: [#3113] Hardcode cider-version as a


From: Bozhidar Batsov
Subject: Re: [nongnu] elpa/cider ff1de2bd22: [#3113] Hardcode cider-version as a workaround
Date: Wed, 29 Dec 2021 09:50:23 +0200
User-agent: Cyrus-JMAP/3.5.0-alpha0-4525-g8883000b21-fm-20211221.001-g8883000b

I'm already using `package-get-version` as well, but in case they install from MELPA there's a divergence in the version that I wanted to account for, as MELPA replaces the "real" package version (e.g. 1.2) with a build timestamp. So I end up displaying to the users something like "Version 1.2.0-snapshot (package: 20211219...)" in those cases. Makes it easier for me to debug issues related to snapshot builds. Anyways, thanks a lot for the help!   

On Wed, Dec 29, 2021, at 9:32 AM, Stefan Monnier wrote:
>     [#3113] Hardcode cider-version as a workaround
>     
>     I can't figure out why the auto-extraction of the version doesn't work.
[...]
> -(defconst cider-version
> -  (lm-version (or load-file-name buffer-file-name))
> +(defconst cider-version "1.2.0"
>    "The current version of CIDER.")

I suspect the problem may be that `load-file-name` will point at
`cider.elc` where `lm-version` won't find what you need.

You can try and use `package-get-version` (new in Emacs-27) which tries
to get this working.


        Stefan





reply via email to

[Prev in Thread] Current Thread [Next in Thread]