Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failure to detect built-in packages #458

Closed
svenssonaxel opened this issue Jan 14, 2020 · 4 comments
Closed

Failure to detect built-in packages #458

svenssonaxel opened this issue Jan 14, 2020 · 4 comments

Comments

@svenssonaxel
Copy link

What's wrong

The code indicates that straight-use-package is intended to return successfully after doing nothing, when passed a built-in package. There are some built-in packages where this is not the case.

Directions to reproduce

(straight-use-package 'menu-bar)
(straight-use-package 'tool-bar)
(straight-use-package 'scroll-bar)
(straight-use-package 'uniquify)

Version information

  • Emacs version:
    GNU Emacs 26.1 (build 2, x86_64-pc-linux-gnu, GTK+ Version 3.24.5) of 2019-09-23, modified by Debian

  • Operating system:
    Linux d 4.9.0-8-amd64 Move FIXME notices into Github issues #1 SMP Debian 4.9.130-2 (2018-10-27) x86_64 GNU/Linux

@raxod502
Copy link
Member

Well, if you look in M-x find-library finder-inf, Emacs seems to say that those features are features but not packages. (Just because you have a feature named foo doesn't mean there has to be a package named foo; the file foo.el is still supposed to have the packaging header either way.) Is there a reason you expect packages by those names to exist, like a Package-Requires header that depends on them?

@svenssonaxel
Copy link
Author

I suppose this was a misunderstanding then, and not a bug.
What about tramp?
It is listed as a built-in package, yet

(straight--convert-recipe 'tramp)
->(:type git :host github :repo "emacsmirror/tramp" :package "tramp" :local-repo "tramp")

@raxod502
Copy link
Member

Packages available from recipe repositories always override built-in packages. This is because for example we don't want the Emacs-provided obsolete version of Org to be considered adequate to satisfy a dependency on Org.

@svenssonaxel
Copy link
Author

Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

2 participants