GNU bug report logs - #78521
Error: No package in XXX with `package-install-file`

Previous Next

Package: emacs;

Reported by: Jen-Chieh Shen <jcs090218 <at> gmail.com>

Date: Wed, 21 May 2025 00:10:01 UTC

Severity: normal

Full log


View this message in rfc822 format

From: Jen-Chieh Shen <jcs090218 <at> gmail.com>
To: Philip Kaludercic <philipk <at> posteo.net>
Cc: Eli Zaretskii <eliz <at> gnu.org>, 78521 <at> debbugs.gnu.org
Subject: bug#78521: Error: No package in XXX with `package-install-file`
Date: Sat, 24 May 2025 18:57:46 -0700
[Message part 1 (text/plain, inline)]
Hi, Philip.

The error was covered by my error message. After going one level deep, the
real error message is `Package lacks a file header `.
It occurred with the following code, not `package-install-file` (sorry for
the confusion).

``elisp
(with-temp-buffer
  (dired path)
  (ignore-errors (package-dir-info)))  ; error occurred this line
```

The test package I'm trying to install is located at
https://github.com/emacs-eask/cli/tree/master/test/jest/install/foo-mode.

Thanks!

On Thu, May 22, 2025 at 3:45 AM Philip Kaludercic <philipk <at> posteo.net>
wrote:

> Eli Zaretskii <eliz <at> gnu.org> writes:
>
> >> From: Jen-Chieh Shen <jcs090218 <at> gmail.com>
> >> Date: Tue, 20 May 2025 17:08:38 -0700
> >>
> >> I recently encountered an error, No package in XXX, when using the
> package-install-file function in
> >> the latest Emacs snapshot. This function was working correctly as of
> May 5, 2025, but started failing
> >> sometime after May 8, 2025. I suspect there may have been a breaking
> change introduced.
> >>
> >> This issue only affects the snapshot build—my CI tests cover Emacs
> versions 26.3, 27.2, 28.2, 29.4, 30.1,
> >> and the snapshot, and all versions except the snapshot pass. You can
> view the test results here:
> >> https://github.com/emacs-eask/cli/actions/runs/14904371642.
> >
> > Philip, could you please take a look at this issue?
>
> Can you elaborate what the tests are doing?  package-install-file works
> fine for me on my end.
>
[Message part 2 (text/html, inline)]

This bug report was last modified 11 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.