From: Philip Kaludercic <philipk@posteo.net>
To: "amano.kenji" <amano.kenji@proton.me>
Cc: Stefan Monnier <monnier@iro.umontreal.ca>, help-gnu-emacs@gnu.org
Subject: Re: package-vc.el should not fetch all commits.
Date: Tue, 05 Mar 2024 09:42:53 +0000 [thread overview]
Message-ID: <87ttll815u.fsf@posteo.net> (raw)
In-Reply-To: <Du4XTKxxFJ8pHLCWdkllVBgb1BkjIsSDYP1zV5C5KhA0U4wBnLj7EJFfrkQO0z7Mda68elU6ymxwYrNBL_653fDh2h30BO3ekymnnBL3_lM=@proton.me> (amano kenji's message of "Tue, 05 Mar 2024 05:17:36 +0000")
"amano.kenji" <amano.kenji@proton.me> writes:
> I want emacs to update all (VCS) packages.
>
> If package management is outsourced, I can't update all packages with one emacs command.
I don't think Stefan is arguing to "outsource" package management. I'd
imagine the idea would be that if you have a any Git repository, you
could just clone it whatever way you want, then M-x
package-use-that-clone the directory and it would be installed and
managed by package.el, which should include the ability to update the
package.
What I am pondering, is if this should be part of package/package-vc, or
if it would be better to make adjustments so that these can be flexibly
extended, and then we could have a "package-git" package on ELPA that
could provide the general interface that Stefan mentioned, and while one
is at it, some auxiliary commands that would streamline common operations.
> On Monday, March 4th, 2024 at 4:30 PM, Stefan Monnier <monnier@iro.umontreal.ca> wrote:
>
>> > Right, but there is no inherent problem in supporting other workflows,
>> > as long as it is reasonably doable. E.g. we could add a user option
>> > that could influence the arguments passed to vc-git-clone, so that one
>> > can inject a --depth=1 argument, and restructure some of the package-vc
>> > functionality to make it reusable for other intents (e.g. better
>> > isolating the "building" from the "installing"), so that other packages
>> > can make use of the logic that prepares manuals or resolves
>> > dependencies. But that should probable be discussed in a bug report,
>> > not here.
>>
>>
>> But when it comes to installing from arbitrary Git repositories, I think
>> a better path would be to provide commands that let `package.el` use
>> a local clone, so that users can `git clone` any which way they prefer,
>> and then just `M-x package-use-that-clone`.
>>
>> It would provide total flexibility for the users without needing endless
>> options in our code to handle each and every possible detail.
>>
>>
>> Stefan
--
Philip Kaludercic on peregrine
next prev parent reply other threads:[~2024-03-05 9:42 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-03-01 12:31 package-vc.el should not fetch all commits amano.kenji
2024-03-01 13:33 ` Philip Kaludercic
2024-03-01 22:53 ` amano.kenji
2024-03-02 6:53 ` Philip Kaludercic
2024-03-02 11:46 ` amano.kenji
2024-03-02 14:40 ` Stefan Monnier via Users list for the GNU Emacs text editor
2024-03-03 7:53 ` amano.kenji
2024-03-03 13:58 ` Stefan Monnier
2024-03-04 14:54 ` Philip Kaludercic
2024-03-04 16:30 ` Stefan Monnier
2024-03-05 5:17 ` amano.kenji
2024-03-05 9:42 ` Philip Kaludercic [this message]
2024-03-05 15:42 ` Stefan Monnier via Users list for the GNU Emacs text editor
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87ttll815u.fsf@posteo.net \
--to=philipk@posteo.net \
--cc=amano.kenji@proton.me \
--cc=help-gnu-emacs@gnu.org \
--cc=monnier@iro.umontreal.ca \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).