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

bootstrap.el may fail behind a proxy #1154

Open
donkopotamus opened this issue Mar 18, 2024 · 1 comment
Open

bootstrap.el may fail behind a proxy #1154

donkopotamus opened this issue Mar 18, 2024 · 1 comment
Labels

Comments

@donkopotamus
Copy link

What's wrong

In order to install straight.el boostrap.el:

  • unconditionally clears straight-recipe-repositories; then
  • calls a sequence of (straight-use-recipes ...)

If any of these repositories are blocked by a proxy (in my case nongnu-elpa on git.savannah.gnu.org) then the bootstrap fails without installing straight.

Could the addition of these repositories be gated somehow? For example I hacked in the following sort of check (I am not strong on lisp!)

(if (or (not (boundp 'straight-bootstrap-use-nongnu-elpa))
    straight-bootstrap-use-nongnu-elpa)
    (straight-use-recipes ...)
)

And then I set the following before the standard bootstrap snippet

(setq straight-bootstrap-use-nongnu-elpa nil)
(defvar bootstrap-version)
(let ((bootstrap-file ...
)

This successfully skipped that recipe repository. There is probably a far better way however.

Version information

  • Emacs version: 29.2
  • Operating system: redhat-9
@raxod502
Copy link
Member

One option to avoid forking straight.el is to use straight-recipe-overrides to set the URLs correctly or set them to a stub definition. However, you are correct that this is a missing feature. It should be possible to customize which recipe repositories are used by default.

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

No branches or pull requests

2 participants