Closed mekeor closed 2 years ago
Hello,
Yes, it's because the Guix channel already has this package. So, since they are both in the Guix channel and my channel, it will have a conflict.
For the fix, I can change the package name to emacs-melpa-package-name
but it's a bit long.
I don't have any other solution in mind for now.
I have a looked a bit more into this error. It come from the fact that I override emacs-vterm. I will need to rework a bit my override system to make this work correctly. Sorry for the inconvenience
@babariviere, i think this is because this line: https://github.com/babariviere/guix-emacs/blob/66866eb847151eef676d18c209cd47dcaa07d76a/emacs/packages/melpa.scm#L118 i.e. because the emacs-vterm package from (emacs packages melpa) depends on emacs-vterm from default guix-channel. why is it even necessary to use it as native-input?
@mekeor That’s not the issue since I am getting native-inputs from gnu packages (so, it’s not a dependency). It’s required to be able to compile emacs-vterm native code.
The issue is that I have 2 declarations of emacs-vterm, one in melpa.scm and another one in melpa-generated.scm. Every packages depends on the one in melpa-generated.scm but you are installing the one from melpa.scm.
I will implement a fix in 1 or 2 week.
This should be fixed with the latest commit cb51684b1a4fa0402c284942651ac192ac951d4b. Tell me if it works!
I came across a similar issue with emacs-ement
which conflicts with emacs-magit
, but then if I try uninstalling emacs-magit
, another conflict emerges with emacs-help-bibtex
and this is probably going to be a rather long series before all conflicts are gone (and I did not iterate much because uninstalling/installing packages is too long with Guix).
What is the best way to work around this issue? Should I just give up and install ement.el
from list-packages
within emacs?
I am sorry for that, this is because dependencies doesn't use the package you have specified.
One way I have fixed this with my config is to rewrite emacs-packages to use either the latest version from this repo or use the version from guix.
You can find my snippet here: https://github.com/babariviere/dotfiles/blob/guix/baba/home/services/emacs.scm#L27
In your case, you can rewrite emacs-magit to use one of the two available packages.
I constantly get these sort of conflicts:
Any idea why? :)