emacs-eldev / eldev

Elisp development tool
https://emacs-eldev.github.io/eldev/
GNU General Public License v3.0
227 stars 17 forks source link

Conflicting URLs for package archive ‘xxx’ #27

Closed twlz0ne closed 3 years ago

twlz0ne commented 3 years ago
⋊> cat ~/.eldev/config
(setq package-archives
      '(("gnu"          . "https://mirrors.sjtug.sjtu.edu.cn/emacs-elpa/gnu/")
        ("melpa"        . "https://mirrors.sjtug.sjtu.edu.cn/emacs-elpa/melpa/")
        ("melpa-stable" . "https://mirrors.sjtug.sjtu.edu.cn/emacs-elpa/melpa-stable/")
        ("marmalade"    . "https://mirrors.sjtug.sjtu.edu.cn/emacs-elpa/marmalade/")
        ("org"          . "https://mirrors.sjtug.sjtu.edu.cn/emacs-elpa/org/")))

⋊> eldev init
Try to automatically select package archive(s) for dependency lookup? (y or n) y
Please wait, this might take a while...

Conflicting URLs for package archive ‘gnu’: ‘https://mirrors.sjtug.sjtu.edu.cn/emacs-elpa/gnu/’ and ‘https://elpa.gnu.org/packages/’
doublep commented 3 years ago

Eldev manages value of package-archives itself, so it will fail if you do it on your own. I guess in this case you want to tell it the list of known archives that could be used for packages. You could try adjusting value of eldev--known-package-archives and eldev--stable/unstable-archives, though these are package-private variables currently.