progfolio / elpaca

An elisp package manager
GNU General Public License v3.0
609 stars 28 forks source link

[Bug/Support]:Overriding an older builtin package (transient) using Elpaca #298

Closed draynz closed 4 months ago

draynz commented 4 months ago

Confirmation

Elpaca Version

Elpaca dc66af6 HEAD -> master, origin/master, origin/HEAD installer: 0.7 emacs-version: GNU Emacs 29.1 (build 3, x86_64-pc-linux-gnu, GTK+ Version 3.24.33, cairo version 1.16.0) of 2024-03-25 git --version: git version 2.43.2

Operating System

GNU/Linux Mint 21.3 Cinnamon (Gnome)

Description

When installing magit, one of its dependencies, git-commit fails on its dependency package, transient, with the following error message: " transient installed version (20230730) lower than min required 20231204". In the elpaca-repos-directory, I do have the most recent version (0.6) of transient fetched from github. However, git-commit fails to pick up this version, but it picks up the older builtin version (0.4) instead. So, my question is: how can I override the built in version in favor of the newer one required by git-commit? I have searched the internet and the Issues page here for some days now, but I still can't solve the problem. Since this issue seems to be on Elpaca, I thought I should post my question here. I'd appreciate any suggestion if I need to take it elsewhere (e.g. to the magit page).

progfolio commented 4 months ago

Thanks for taking the time to fill out a support ticket. Could you please show the relevant configuration you're using?

draynz commented 4 months ago

Thanks for the prompt response. I finally have managed some progress by playing around with the recipes. This has successfully overwritten the builtin packages (seq and transient), but I have the following Warning now: "Warning (emacs): seq loaded before Elpaca activation"

The following lines accomplish the result I currently have:

` (use-package git-timemachine :ensure (:fetcher codeberg :source "MELPA" :repo "pidu/git-timemachine"))

(use-package seq :ensure (:repo "git://git.sv.gnu.org/emacs/elpa" :local-repo "seq"))

(use-package transient :ensure (:fetcher github :repo "magit/transient")) `

A minimal version of my config is attached. I cloned it from some gitlab repo (Derick Taylor) and modified it according to my needs. config.el.zip scripts.zip

progfolio commented 4 months ago

Thanks for the prompt response. I finally have managed some progress by playing around with the recipes. This has successfully overwritten the builtin packages (seq and transient), but I have the following Warning now: "Warning (emacs): seq loaded before Elpaca activation"

For the seq warning see: https://github.com/progfolio/elpaca/issues/216

It's generally a better idea to either install an older version of the package which requires the newer packages, or to upgrade Emacs so all of the core packages are updated. Though it's possible to chase to those dependencies by altering recipes as well. It just requires more work.

I cloned it from some gitlab repo (Derick Taylor)

I don't think his configuration has tracked the latest changes to Elpaca, so it would be better to consult the README, manual, and wiki here to keep up with the latest changes.

progfolio commented 4 months ago

I'll consider this closed since I haven't heard anything back. If you still need assistance with this issue, feel free to comment and we can reopen. Thanks.

draynz commented 4 months ago

Yes please. It's okay to consider it closed. Your suggestion has helped me. I've been away from my emails for a few days until earlier today where I implemented the suggestion, and I was about to give an update.

Thank you so much!

On Thu, May 2, 2024 at 4:20 PM Nicholas Vollmer @.***> wrote:

Closed #298 https://github.com/progfolio/elpaca/issues/298 as completed.

— Reply to this email directly, view it on GitHub https://github.com/progfolio/elpaca/issues/298#event-12684133625, or unsubscribe https://github.com/notifications/unsubscribe-auth/AD3SIMKOSPPOCLBUT6YT233ZAJDURAVCNFSM6AAAAABGZRZEPGVHI2DSMVQWIX3LMV45UABCJFZXG5LFIV3GK3TUJZXXI2LGNFRWC5DJN5XDWMJSGY4DIMJTGM3DENI . You are receiving this because you authored the thread.Message ID: @.***>

-- Dumsani

progfolio commented 4 months ago

draynz @.***> writes:

Yes please. It's okay to consider it closed. Your suggestion has helped me. I've been away from my emails for a few days until earlier today where I implemented the suggestion, and I was about to give an update.

Thank you so much!

All good. Glad to hear it helped. Thanks again.

draynz commented 4 months ago

Thanks.

On Thu, May 2, 2024 at 5:10 PM Nicholas Vollmer @.***> wrote:

draynz @.***> writes:

Yes please. It's okay to consider it closed. Your suggestion has helped me. I've been away from my emails for a few days until earlier today where I implemented the suggestion, and I was about to give an update.

Thank you so much!

All good. Glad to hear it helped. Thanks again.

— Reply to this email directly, view it on GitHub https://github.com/progfolio/elpaca/issues/298#issuecomment-2090772736, or unsubscribe https://github.com/notifications/unsubscribe-auth/AD3SIMJUKKZNURJWAB5TOWLZAJJOBAVCNFSM6AAAAABGZRZEPGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAOJQG43TENZTGY . You are receiving this because you authored the thread.Message ID: @.***>

-- Dumsani