all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Basil L. Contovounesios" <contovob@tcd.ie>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: emacs-devel@gnu.org, Oleh Krehel <oleh@oremacs.com>
Subject: Re: [elpa] main 8f4cb59: * elpa-packages (counsel, ivy, swiper): Auto-sync.
Date: Thu, 25 Feb 2021 16:24:11 +0000	[thread overview]
Message-ID: <87mtvsundg.fsf@tcd.ie> (raw)
In-Reply-To: <jwv1rd4i502.fsf-monnier+emacs@gnu.org> (Stefan Monnier's message of "Thu, 25 Feb 2021 10:12:37 -0500")

Stefan Monnier <monnier@iro.umontreal.ca> writes:

> To me the two best options are:
>
> - Split the upstream repository so we get one repository per ELPA package.

No objections from me, but that's Oleh's call and I think
ivy/swiper/counsel are too tightly coupled anyway.

> - Get rid of the split between the ELPA packages (so you again get one
>   ELPA package per repository).

This sounds like the path of least resistance for everyone, and I'm in
favour of it, but let's see what Oleh thinks.

This would involve deleting the other packages, though, right?  (Since
there would otherwise be multiple different copies of the same files in
elpa.git.)  Wouldn't users complain?

> Another option is to have separate manually-synced branches in the
> upstream, one per ELPA package.  This is basically the same as what we
> have currently, except that the manual syncing is done between the "main"
> branch" and the "for-elpa branches" (all within the upstream repository)
> rather than between the main branch in the upstream and the elpa
> branches in `elpa.git`.  To me, it seems to bring no benefit, but
> I guess depending on your workflow (and access rights) it could make
> a difference.

For better or worse I have access rights in both repositories, and I
don't mind maintaining these branches in swiper.git.  To me, the main
benefit of this would be not having to switch between different
repositories for development or Git trickery, and then elpa.git would
remain more declarative.  But ultimately I'm happy to do either.

BTW, is it possible/kosher to force-push to external branches in
elpa.git?

> There's another option, which I dislike and introduces inefficiencies,
> which is to make all those packages have the exact same content (so they
> all have the same upstream branch and we can fast-forward it) and then
> rely on the `:ignored-files` parameter in `elpa-packages` to filter out the
> files we don't want in the tarballs.
> Downsides:
> - A full elpa.git checkout (like the one elpa.gnu.org keeps to build the tarballs, or the
>   one I keep on my machines to "install in place" all the GNU ELPA packages)
>   would contain duplicate copies.
> - The `:ignored-files` doesn't have any notion of "negation" so you
>   can't say "ignore all but counsel.el", making those lists of
>   ignored files annoying to maintain.
> - For the "install in place" case, those duplicate copies get
>   redundantly byte-compiled as well.
> - For the "install in place" case, the "ivy.el" file loaded by Emacs
>   may not be the one I think: instead of `packages/ivy/ivy.el` the
>   `load-path` may direct Emacs to choose `packages/counsel/ivy.el`
>   instead (so I'd have to be careful to ask Emacs which file it's using
>   before I start hacking on it, lest I'd start modifying one file which
>   turns out not be used, which could lead me to tearing out my hair for
>   a while).

Anything to protect your hair!

>> Or maybe adding something like MELPA's ability to specify which exact
>> files to consider from the upstream repository?
>
> That could be added, and could reduce the burden of managing the
> `:ignored-filed`, yes.

It would be nice to have, but it doesn't address the hair tearing issue,
so I won't be bothering with it just yet.

Thanks,

-- 
Basil



  reply	other threads:[~2021-02-25 16:24 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20210225102521.11653.64611@vcs0.savannah.gnu.org>
     [not found] ` <20210225102523.7CEF420B28@vcs0.savannah.gnu.org>
2021-02-25 14:33   ` [elpa] main 8f4cb59: * elpa-packages (counsel, ivy, swiper): Auto-sync Basil L. Contovounesios
2021-02-25 15:12     ` Stefan Monnier
2021-02-25 16:24       ` Basil L. Contovounesios [this message]
2021-02-25 16:40         ` Stefan Monnier
2021-03-09 22:17         ` Basil L. Contovounesios
2021-03-09 23:56           ` Stefan Monnier
2021-03-10 12:40             ` Basil L. Contovounesios
2021-03-11 15:48               ` Stefan Monnier
2021-03-11 17:12                 ` Basil L. Contovounesios
2021-03-11 17:34                   ` Stefan Monnier
2021-03-11 19:25                     ` Basil L. Contovounesios
2021-03-11 22:47                       ` Stefan Monnier
2021-03-11 22:59                         ` Basil L. Contovounesios

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87mtvsundg.fsf@tcd.ie \
    --to=contovob@tcd.ie \
    --cc=emacs-devel@gnu.org \
    --cc=monnier@iro.umontreal.ca \
    --cc=oleh@oremacs.com \
    /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.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.