mickeynp / combobulate

Structured Editing and Navigation in Emacs with Tree-Sitter
GNU General Public License v3.0
945 stars 54 forks source link

Installation error from github -- submodule permission denied #105

Closed gvoysey closed 6 months ago

gvoysey commented 6 months ago

Recently, this installation has begun to fail -- i noticed it ~48 hours ago, but was able to successfully update combobulate as of several weeks ago.

      (use-package
        combobulate
        :straight (combobulate
                   :type git
                   :host nil
                   :repo "https://github.com/mickeynp/combobulate")
        :preface
          (dolist (mapping '((python-mode . python-ts-mode)
                     ;; (css-mode . css-ts-mode)
                     ;; (typescript-mode . tsx-ts-mode)
                     ;; (js-mode . js-ts-mode)
                     ;; (css-mode . css-ts-mode)
                      ;; (markdown-mode . markdown-ts-mode)
                      (json-mode . json-ts-mode)
                     (yaml-mode . yaml-ts-mode)))
            (add-to-list 'major-mode-remap-alist mapping))
        :hook ((python-ts-mode . combobulate-mode)
               ;; (js-ts-mode . combobulate-mode)
               ;; (css-ts-mode . combobulate-mode)
               ;; (markdown-ts-mode . combobulate-mode)
               ;; (typescript-ts-mode . combobulate-mode)
               ;; (tsx-ts-mode . combobulate-mode)
               (yaml-ts-mode . combobulate-mode)
               (json-ts-mode . combobulate-mode)))

Executing this yields the following in the *straight-process* buffer:


$ cd /home/gvoysey/.emacs.d/straight/repos/
$ git clone --origin origin --no-checkout https\://github.com/mickeynp/combobulate /home/gvoysey/.emacs.d/straight/repos/combobulate/ --no-single-branch

Cloning into '/home/gvoysey/.emacs.d/straight/repos/combobulate'...

[Return code: 0]

$ cd /home/gvoysey/.emacs.d/straight/repos/combobulate/
$ git branch -r

  origin/HEAD -> origin/master
  origin/development
  origin/feature/define-combobulate-language
  origin/feature/more-tests
  origin/feature/more-tests-1
  origin/master
  origin/rewrite

[Return code: 0]

$ cd /home/gvoysey/.emacs.d/straight/repos/combobulate/
$ git checkout -B master origin/master

branch 'master' set up to track 'origin/master'.
Your branch is up to date with 'origin/master'.
Reset branch 'master'

[Return code: 0]

$ cd /home/gvoysey/.emacs.d/straight/repos/combobulate/
$ git submodule update --init --recursive

Submodule 'tests/html-ts-mode' (git@github.com:mickeynp/html-ts-mode.git) registered for path 'tests/html-ts-mode'
Cloning into '/home/gvoysey/.emacs.d/straight/repos/combobulate/tests/html-ts-mode'...
git@github.com: Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
fatal: clone of 'git@github.com:mickeynp/html-ts-mode.git' into submodule path '/home/gvoysey/.emacs.d/straight/repos/combobulate/tests/html-ts-mode' failed
Failed to clone 'tests/html-ts-mode'. Retry scheduled
Cloning into '/home/gvoysey/.emacs.d/straight/repos/combobulate/tests/html-ts-mode'...
git@github.com: Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
fatal: clone of 'git@github.com:mickeynp/html-ts-mode.git' into submodule path '/home/gvoysey/.emacs.d/straight/repos/combobulate/tests/html-ts-mode' failed
Failed to clone 'tests/html-ts-mode' a second time, aborting

[Return code: 1]
gvoysey commented 6 months ago

passing :nonrecursive with straight resolves this (ref https://github.com/radian-software/straight.el?tab=readme-ov-file#git-backend ); sorry for the chaff and thanks for a really awesome package!


      (use-package
        combobulate
        :straight (combobulate
                   :type git
                   :host nil
                   :nonrecursive t
                   :repo "https://github.com/mickeynp/combobulate")```
mickeynp commented 6 months ago

No problem!