From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Kangas Newsgroups: gmane.emacs.devel Subject: Re: feature/package+vc 04c4c578c7 3/4: Allow for packages to be installed directly from VCS Date: Mon, 17 Oct 2022 05:25:48 +0000 Message-ID: References: <164484721900.31751.1453162457552427931@vcs2.savannah.gnu.org> <20220214140020.04438C00891@vcs2.savannah.gnu.org> <87bkqmqpvb.fsf@posteo.net> <871qris3xb.fsf@gnus.org> <877d1aqoc1.fsf@posteo.net> <87edvhqdrb.fsf@gnus.org> <871qrh2hh6.fsf@posteo.net> <87mta5oyec.fsf@gnus.org> <87sfjx10x1.fsf@posteo.net> <875ygsp0ng.fsf@gnus.org> <87h70c9bu4.fsf@posteo.net> <874jw73cjy.fsf@posteo.net> <87edv72z11.fsf@posteo.net> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="10123"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Stefan Monnier , emacs-devel@gnu.org To: Philip Kaludercic , Lars Ingebrigtsen Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Oct 17 07:29:10 2022 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1okIgX-0002RE-VW for ged-emacs-devel@m.gmane-mx.org; Mon, 17 Oct 2022 07:29:09 +0200 Original-Received: from localhost ([::1]:47406 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1okIgW-00043L-KV for ged-emacs-devel@m.gmane-mx.org; Mon, 17 Oct 2022 01:29:08 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:35824) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1okIdM-0001iV-OF for emacs-devel@gnu.org; Mon, 17 Oct 2022 01:25:52 -0400 Original-Received: from mail-ot1-x332.google.com ([2607:f8b0:4864:20::332]:37763) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1okIdK-00076j-VW for emacs-devel@gnu.org; Mon, 17 Oct 2022 01:25:52 -0400 Original-Received: by mail-ot1-x332.google.com with SMTP id r8-20020a056830120800b00661a0a236efso5196970otp.4 for ; Sun, 16 Oct 2022 22:25:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:mime-version:references:in-reply-to :from:from:to:cc:subject:date:message-id:reply-to; bh=ag31yeDwupI+BR5FX/gucVf7PbUMiKZxopglMOUruwM=; b=U3w+F+xmJqhlSe5yLlGrO14ChMwtUk8+10iPxmTgzGMrJeolkjeKfVzhpp/zLw6gzB jGkSSNlh26pE54po3Kir9adkLsQozQ1Cnpp5E17hh/A3w9RAUTqVhjKmdzJlp6aMJYLL UrY8JgI2KlXwzt7th3BPQuMSeCD/y1biVK5Nf58OoBXn6yLQXtxBWrn2v0+bNYT87oWr AbK9ilCz2OF+sY9JXMNb5AZi62o7aF2ZRw4vWOOi4q5XXTZhlTXQGRMwqT4v+4U3VxsG v33/5hgo/vCCMSaq1kJm/qiw1MkNcvel+XeK3iehUp3IwFLTdUuOsrxLGLnGAlIqYHYD U+jw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:mime-version:references:in-reply-to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=ag31yeDwupI+BR5FX/gucVf7PbUMiKZxopglMOUruwM=; b=7VFSmCundghCxQqjGDHSiMnJRfIbusoRErd3hNFFRvfIlKtNZrHVogRBuaCz3lVMUb +k+z+OekaTgQCvsgeIvOqxEJmpUvybb/EPOS5ZB7dKNlRMV4UxS9sbMtPpIHbRKq7Px2 RwCHzY42MxwXSuOlW8dNZWEEVt9k3NHYT10Op9sIbr2IE/nkI5R7f8a2Q1ViW9ViU2Cw mmtTl8pHVpkQ2fipLUMDW4TYJ0MkC3GsWjdOTLt6c6mbtB9NNQWJDTnytamaiBZea8Ms EjwCHnCZfU1PA07ReCNgtchDQjQan+M1Euht98sIZgJVlqkFOhRxuStELzQUFXKapMJy wr2Q== X-Gm-Message-State: ACrzQf0CwsVKLeInI2S8W6nV7e2kuIMvtobH54hs2Z5bgzsmlcS0BmUb Aj/F4TH6gEVJj0xdmDc+g+/WRgeZPzl0mEFCgF8= X-Google-Smtp-Source: AMsMyM44+YFeUt6sBjb1riWfT7HD/BFGSyWbzh2XLRegwkE/9Hgrj7TTOkqp/wLl7gtCMhZ5ZvUVZ0cjQlV3VUVXrVE= X-Received: by 2002:a05:6830:3c1:b0:637:28be:7920 with SMTP id p1-20020a05683003c100b0063728be7920mr4139802otc.105.1665984349491; Sun, 16 Oct 2022 22:25:49 -0700 (PDT) Original-Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Mon, 17 Oct 2022 05:25:48 +0000 In-Reply-To: <87edv72z11.fsf@posteo.net> X-Hashcash: 1:20:221017:emacs-devel@gnu.org::Qk8v7q136JsCDsIt:5P+x Received-SPF: pass client-ip=2607:f8b0:4864:20::332; envelope-from=stefankangas@gmail.com; helo=mail-ot1-x332.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:297909 Archived-At: Philip Kaludercic writes: > The value corresponding to :upstream is a list of the form > > (VC-BACKEND REPOSITORY-URL SUBDIRECTORY BRANCH) > > I have been wondering if it would be better to use a {a,p}list instead, > which would be more flexible if changes would become necessary in the > future. Perhaps I am even missing something right now? > > At the same time I don't mean to burden the ELPA server by increasing > the size of the file that is regularly queried. Perhaps REPOSITORY-URL > could have special values such as `:url' to indicate that the package > URL is the same as the repository and `:elpa'/`:nongnu' to indicate that > the default repository is being used. Or is this just premature > optimisation? I think it's important to make the format both extensible and readable, so I'd probably lean towards an alist or plist. If the reason not to do that is a concern that the file gets bigger/slower, I think it would be good to produce some numbers. Without that, it does feel a bit like premature optimization.