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

Loading "private" packages #441

ndw opened this issue Dec 1, 2019 · 1 comment

Loading "private" packages #441

ndw opened this issue Dec 1, 2019 · 1 comment


Copy link

@ndw ndw commented Dec 1, 2019


The documentation, which is generally excellent, makes it seem like what I'm hoping to do should be possible, but I'm not able to connect the dots.

I'm happy to get most of my packages from github, from melpa, etc. but I have a couple that aren't public. (I suppose, in practice, I could just install them by hand, but I'm trying to simplify my init by doing things in a more regular, less ad hoc fashion).

Can I change the protocol for a single recipe?

What I want to say is "you can get this package by checking out this git repo on that host over ssh".

If that's not possible or is impractical, can I say "you can get this package out of that directory over there?"

@ndw ndw added the support label Dec 1, 2019

This comment has been minimized.

Copy link

@raxod502 raxod502 commented Dec 1, 2019

Thanks for your question!

Currently, you can't change the protocol for a single recipe (see #92). However, you have two options:

  • Just enable SSH globally by setting straight-vc-git-default-protocol. All GitHub repositories are accessible via SSH as well as via HTTPS.
  • Simply specify the entire URL, i.e. (:repo "") instead of (:host github :repo "yourname/private").

I believe one of these options should solve your problem. However I will also note that you can indeed run a package from a local directory simply using :local-repo "full-or-relative-path". Note that you should put the repository inside ~/.emacs.d/straight/repos for the automatic modification detection to work the best.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
2 participants
You can’t perform that action at this time.