emacs-eldev / eldev

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

Feature request: optional dependencies #31

Closed DarwinAwardWinner closed 3 years ago

DarwinAwardWinner commented 3 years ago

One nice-to-have feature would be a way to explicitly declare an optional dependency, which Eldev will try to install but then keep going regardless of whether the install succeeds or fails. And then you could also have a command-line option to disable all optional dependencies (e.g. in order to test that the package's base functionality doesn't have any unintentional hard dependencies on optional packages). But like I said, this is just nice-to-have. Most packages developers probably don't need anything like this.

So instead of:

(when (version<= "25.1" emacs-version)
  (eldev-add-extra-dependencies 'test 'helm))

I could say:

(eldev-add-extra-optional-dependencies 'test 'helm)

And then when testing on Emacs 24, Eldev would see that helm can't be installed and just skip it and keep going.

Originally posted by @DarwinAwardWinner in https://github.com/doublep/eldev/issues/29#issuecomment-766399496

doublep commented 3 years ago

Released in 0.9. See documentation (also the previous section).

DarwinAwardWinner commented 3 years ago

Excellent! Thanks very much for implementing this.