radian-software / straight.el

🍀 Next-generation, purely functional package manager for the Emacs hacker.
MIT License
2.72k stars 150 forks source link

How to prevent straight cloning a certain project? Problems with project and eglot #833

Closed rileyrg closed 3 years ago

rileyrg commented 3 years ago

Whichever version of 'project straight clones is incompatible with 'eglot it seems.

I have an early (require 'project) in my init (after ensureing I had purged 'project from straight/repos & build) but later on something is triggering another load and straight is insisting on cloning it. I don't have a (use-package project) in my init.

How can I prevent or blacklist a package from being cloned and instead simply rely on the version shipped with emacs?

progfolio commented 3 years ago

Does any of the info in #551 help?

progfolio commented 3 years ago

Try evaluating the following test case:

Test Case ```emacs-lisp (straight-bug-report :user-dir "project-test.straight" :post-bootstrap (straight-use-package '(project :local-repo nil)) (straight-use-package 'eglot) (message "repos dir:\n%s\n" (string-join (straight--directory-files (straight--repos-dir)) "\n"))) ```
Output ```emacs-lisp Test run with version: prerelease (HEAD -> develop, origin/develop) 45eb611 2021-08-13 repos dir: straight.el melpa gnu-elpa-mirror el-get emacsmirror-mirror eglot jsonrpc flymake eldoc xref Packages: "org-elpa" n/a n/a "melpa" n/a master c44eceaf 2021-08-09 "gnu-elpa-mirror" n/a master 8ce05c5 2021-08-10 "el-get" melpa master 463f5e98 2021-07-06 "emacsmirror-mirror" n/a master 664c0cc 2021-08-09 "straight" n/a develop 45eb611 2021-08-13 "project" gnu-elpa-mirror n/a "eglot" melpa master 194b178 2021-07-22 "jsonrpc" gnu-elpa-mirror master dbfa309 2021-02-08 "flymake" gnu-elpa-mirror master c89cabb 2021-08-02 "eldoc" gnu-elpa-mirror master 24ab6e0 2021-05-18 "xref" gnu-elpa-mirror master c1d9ef0 2021-08-06 ```
progfolio commented 3 years ago

Any luck with this?

rileyrg commented 3 years ago

Sorry. I was remiss. I'll check soon. --Please note my email address is now @. 20/08/2021, 17:43 Nicholas Vollmer @.> wrote:

Any luck with this? —You are receiving this because you authored the thread.Reply to this email directly, view it on GitHub, or unsubscribe.Triage notifications on the go with GitHub Mobile for iOS or Android.

progfolio commented 3 years ago

Closing this for now. If you test any of the above and it doesn't work out, or you have any other info to add, please feel free and we can reopen if necessary.