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

Please do not bundle oauth2-auto #250

Open
tarsius opened this issue Jun 30, 2024 · 1 comment
Open

Please do not bundle oauth2-auto #250

tarsius opened this issue Jun 30, 2024 · 1 comment

Comments

@tarsius
Copy link

tarsius commented Jun 30, 2024

If at all possible, a repository used to maintain an Emacs package should not bundle any third-party libraries.

Bundling external dependencies might not cause any issues for users who install the package from Melpa, because packages distributed there can filter out unwanted libraries. But some people (including myself) run packages directly from their repositories (e.g., because that makes it much easier to contribute).

For such users the bundled library may end up on the load-path, possibly before the independently installed (or built-in) upstream version. As a result some outdated version can end up being loaded and that can be very confusing and hard to debug.

I recommend that you never bundle any third-party libraries. If that is not possible, I recommend that you put those libraries in a separate directory, alongside a file named .nosearch. The existence of this file instructs some tools (such as normal-top-level-add-subdirs-to-load-path and the tools that I use to maintain the Emacsmirror) to ignore the containing directory.

Thanks for considering this!

I have written similar messages many many times so I now use a template. I try to adjust it to match each individual case but it might still not apply 100% in all cases.

@tarsius
Copy link
Author

tarsius commented Oct 13, 2024

Friendly ping!

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

No branches or pull requests

1 participant