GNU bug report logs - #61937
29.0.60; [FR] use-package :ensure to allow vc sources

Previous Next

Package: emacs;

Reported by: Ruijie Yu <ruijie <at> netyu.xyz>

Date: Fri, 3 Mar 2023 15:07:01 UTC

Severity: normal

Tags: patch

Merged with 60418

Found in version 29.0.60

Done: Philip Kaludercic <philipk <at> posteo.net>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 61937 in the body.
You can then email your comments to 61937 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#61937; Package emacs. (Fri, 03 Mar 2023 15:07:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Ruijie Yu <ruijie <at> netyu.xyz>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Fri, 03 Mar 2023 15:07:01 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Ruijie Yu <ruijie <at> netyu.xyz>
To: bug-gnu-emacs <at> gnu.org
Subject: 29.0.60; [FR] use-package :ensure to allow vc sources
Date: Fri, 03 Mar 2023 22:57:36 +0800
I have been using straight.el [1] before `use-package' was taken into
emacs.git, as I needed to use some packages not from any elpa source but
from vc sources.  I recently noticed the function `package-vc-install'
has been introduced into 29, and would like to have `use-package' use it
in its :ensure form.

An analogous version from straight.el has already been made available,
which looks like the following:

    (use-package foo
      :straight (foo :repo "https://path.to/foo.el" :type git))

My hope is to extend :ensure form so that a similar specification can be
supplied to install packages directly from vc sources.

[1]: https://github.com/radian-software/straight.el

--
Best,


RY




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#61937; Package emacs. (Sat, 04 Mar 2023 09:30:02 GMT) Full text and rfc822 format available.

Message #8 received at 61937 <at> debbugs.gnu.org (full text, mbox):

From: Philip Kaludercic <philipk <at> posteo.net>
To: Ruijie Yu <ruijie <at> netyu.xyz>
Cc: 61937 <at> debbugs.gnu.org
Subject: Re: bug#61937: 29.0.60; [FR] use-package :ensure to allow vc sources
Date: Sat, 04 Mar 2023 09:29:26 +0000
Ruijie Yu <ruijie <at> netyu.xyz> writes:

> I have been using straight.el [1] before `use-package' was taken into
> emacs.git, as I needed to use some packages not from any elpa source but
> from vc sources.  I recently noticed the function `package-vc-install'
> has been introduced into 29, and would like to have `use-package' use it
> in its :ensure form.

This has already been proposed (with a patch) in bug#60418.

> An analogous version from straight.el has already been made available,
> which looks like the following:
>
>     (use-package foo
>       :straight (foo :repo "https://path.to/foo.el" :type git))
>
> My hope is to extend :ensure form so that a similar specification can be
> supplied to install packages directly from vc sources.

I have to admit that I am not a fan of this.  Personally I install all
my packages using regular tarballs, and then manually select packages
that I want to track in source-form if I am interested in contributing a
patch.

One has to keep in mind that by default you will be checking out the tip
of the default development branch.  This is not what GNU ELPA and NonGNU
ELPA do.  I know *some other* archives do this, but IMO this contributes
to the instability that a lot of Emacs users experience in regards to
the packages in the Emacs world.  Coincidentally I also believe that the
popularity of alternative (non-cooperative) package managers like this
"straight.el" boils down to the promise of being able to pin and revert
to previous packages states.  Personally I believe that this is an
up-side-down approach to solve the problem from the wrong angle.  The
default approach to package management should be reliable and suffice.

-- 
Philip Kaludercic




Merged 60418 61937. Request was from Philip Kaludercic <philipk <at> posteo.net> to control <at> debbugs.gnu.org. (Fri, 07 Apr 2023 14:12:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Wed, 14 Jun 2023 11:24:05 GMT) Full text and rfc822 format available.

This bug report was last modified 314 days ago.

Previous Next


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