riscy / melpazoid

A bundle of CI scripts for testing Emacs packages, primarily submissions to MELPA.
GNU General Public License v3.0
79 stars 16 forks source link

Issue with pkg-info erroring on present package-lint #17

Open psionic-k opened 2 years ago

psionic-k commented 2 years ago

I fixed a local copy with the following patch:

                     (buffer-name)
-                    (pkg-info-format-version
-                     (pkg-info-package-version "package-lint")))
+                     (pkg-info-version-info "package-lint"))
ELISP> (symbol-file 'package-lint 'provide)
"/home/user/.emacs.d/straight/build/package-lint/package-lint.elc"
ELISP> (pkg-info-package-version "package-lint")
*** Eval error ***  Can’t find installed package package-lint
ELISP> (pkg-info-version-info "package-lint")
"0"
ELISP> (epl-find-installed-package 'package-lint)
nil
ELISP> 

:man_shrugging:

I think epl might be broken, but I can't really follow it farther.

In any case, just to pump a message out to a buffer, I think pkg-info-version-info is fine.

riscy commented 1 year ago

I never thanked you for opening this -- thank you. :)