Straight.el: straight can't install emacsmirror/spray

Created on 9 Dec 2020  Â·  5Comments  Â·  Source: raxod502/straight.el

Trying to load https://github.com/emacsmirror/spray

      (use-package spray
     :straight (spray :type git :host github :repo "emacsmirror/spray"))
;; Error (use-package): Cannot load spray

Do I have something wrong?

emacsmirror support upstream

Most helpful comment

I submitted a pull to update MELPA's spray recipe which has been merged here:

https://github.com/melpa/melpa/commit/b89bd1ada947b64f6c42dda14e626ef55127f8e5

All 5 comments

Please evaluate the following test case in a buffer with lexical binding enabled.
It will build straight in a clean environment and give us a minimal reproduction case
as well as some environmental information about your system (emacs version, straight version, etc).

Once the test completes, a buffer should open with the results.
Please copy those results here.

If the straight-bug-report macro is not available, please ensure you are using the development branch of straight.el.
This can be done by adding:

(setq straight-repository-branch "develop")

before straight's bootstrapping code in your init file.

Test Case

(straight-bug-report
  :user-dir "straight-spray-645"
  :pre-bootstrap 
  (setq straight-repository-branch "develop")
  :post-bootstrap 
  (straight-use-package 'use-package)
  (use-package spray :straight
    (spray :type git :host github :repo "emacsmirror/spray"))
  (with-current-buffer straight-process-buffer
    (message "%s"
             (buffer-string))))

  • Test run at: 2020-12-09 13:16:03
  • system-type: gnu/linux
  • straight-version: prerelease (HEAD -> develop, origin/develop) 742bc66 2020-12-05
  • emacs-version: GNU Emacs 28.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.23, cairo version 1.17.4) of 2020-12-05

Output

Bootstrapping straight.el...
Bootstrapping straight.el...done
Rebuilding all packages due to build cache schema change
Looking for gnu-elpa-mirror recipe → Cloning melpa...
Looking for gnu-elpa-mirror recipe → Cloning melpa...done
Looking for emacsmirror-mirror recipe → Cloning gnu-elpa-mirror...
Looking for emacsmirror-mirror recipe → Cloning gnu-elpa-mirror...done
Looking for emacsmirror-mirror recipe → Cloning el-get...
Looking for emacsmirror-mirror recipe → Cloning el-get...done
Looking for straight recipe → Cloning emacsmirror-mirror...
Looking for straight recipe → Cloning emacsmirror-mirror...done
Building straight...
Building straight...done

Test run with version: prerelease (HEAD -> develop, origin/develop) 742bc66 2020-12-05
Cloning use-package...
Cloning use-package...done
Building use-package...
Building use-package → Building bind-key...
Building use-package → Building bind-key...done
Building use-package...
Building use-package...done
Cloning spray...
Cloning spray...done
Building spray...
Building spray...done

$ cd /tmp/straight-spray-645/straight/repos/
$ git clone --origin origin --no-checkout https\://github.com/melpa/melpa.git /tmp/straight-spray-645/straight/repos/melpa/

Cloning into '/tmp/straight-spray-645/straight/repos/melpa'...

[Return code: 0]

$ cd /tmp/straight-spray-645/straight/repos/melpa/
$ git branch -r

  origin/HEAD -> origin/master
  origin/core
  origin/make-improvements
  origin/master
  origin/revert-7120-update-melpa-links
  origin/tls-1.3

[Return code: 0]

$ cd /tmp/straight-spray-645/straight/repos/melpa/
$ git checkout -B master origin/master

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

[Return code: 0]

$ cd /tmp/straight-spray-645/straight/repos/melpa/
$ git submodule update --init --recursive

[Return code: 0]

$ cd /tmp/straight-spray-645/straight/repos/
$ git clone --origin origin --no-checkout https\://github.com/emacs-straight/gnu-elpa-mirror.git /tmp/straight-spray-645/straight/repos/gnu-elpa-mirror/

Cloning into '/tmp/straight-spray-645/straight/repos/gnu-elpa-mirror'...

[Return code: 0]

$ cd /tmp/straight-spray-645/straight/repos/gnu-elpa-mirror/
$ git branch -r

  origin/HEAD -> origin/master
  origin/master

[Return code: 0]

$ cd /tmp/straight-spray-645/straight/repos/gnu-elpa-mirror/
$ git checkout -B master origin/master

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

[Return code: 0]

$ cd /tmp/straight-spray-645/straight/repos/gnu-elpa-mirror/
$ git submodule update --init --recursive

[Return code: 0]

$ cd /tmp/straight-spray-645/straight/repos/
$ git clone --origin origin --no-checkout https\://github.com/dimitri/el-get.git /tmp/straight-spray-645/straight/repos/el-get/

Cloning into '/tmp/straight-spray-645/straight/repos/el-get'...

[Return code: 0]

$ cd /tmp/straight-spray-645/straight/repos/el-get/
$ git branch -r

  origin/2.stable
  origin/3.stable
  origin/4.stable
  origin/HEAD -> origin/master
  origin/jd/methods-autoload
  origin/master
  origin/next
  origin/refactoring

[Return code: 0]

$ cd /tmp/straight-spray-645/straight/repos/el-get/
$ git checkout -B master origin/master

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

[Return code: 0]

$ cd /tmp/straight-spray-645/straight/repos/el-get/
$ git submodule update --init --recursive

[Return code: 0]

$ cd /tmp/straight-spray-645/straight/repos/
$ git clone --origin origin --no-checkout https\://github.com/emacs-straight/emacsmirror-mirror.git /tmp/straight-spray-645/straight/repos/emacsmirror-mirror/

Cloning into '/tmp/straight-spray-645/straight/repos/emacsmirror-mirror'...

[Return code: 0]

$ cd /tmp/straight-spray-645/straight/repos/emacsmirror-mirror/
$ git branch -r

  origin/HEAD -> origin/master
  origin/master

[Return code: 0]

$ cd /tmp/straight-spray-645/straight/repos/emacsmirror-mirror/
$ git checkout -B master origin/master

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

[Return code: 0]

$ cd /tmp/straight-spray-645/straight/repos/emacsmirror-mirror/
$ git submodule update --init --recursive

[Return code: 0]

$ cd /tmp/straight-spray-645/straight/repos/straight.el/
$ git show -s --format\=\%d\ \%h\ \%cs

 (HEAD -> develop, origin/develop) 742bc66 2020-12-05

[Return code: 0]

$ cd /tmp/straight-spray-645/straight/repos/
$ git clone --origin origin --no-checkout https\://github.com/jwiegley/use-package.git /tmp/straight-spray-645/straight/repos/use-package/

Cloning into '/tmp/straight-spray-645/straight/repos/use-package'...

[Return code: 0]

$ cd /tmp/straight-spray-645/straight/repos/use-package/
$ git branch -r

  origin/HEAD -> origin/master
  origin/gh-pages
  origin/master
  origin/next
  origin/revert-617-lexical-bindings
  origin/revert-645-fix-report
  origin/split-bind-key

[Return code: 0]

$ cd /tmp/straight-spray-645/straight/repos/use-package/
$ git checkout -B master origin/master

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

[Return code: 0]

$ cd /tmp/straight-spray-645/straight/repos/use-package/
$ git submodule update --init --recursive

[Return code: 0]

$ cd /tmp/straight-spray-645/straight/repos/use-package/
$ makeinfo /tmp/straight-spray-645/straight/repos/use-package/use-package.texi -o /tmp/straight-spray-645/straight/build/use-package/use-package.info

/tmp/straight-spray-645/straight/repos/use-package/use-package.texi:87: warning: menu entry name should not contain `:'
/tmp/straight-spray-645/straight/repos/use-package/use-package.texi:88: warning: menu entry name should not contain `:'
/tmp/straight-spray-645/straight/repos/use-package/use-package.texi:89: warning: menu entry name should not contain `:'
/tmp/straight-spray-645/straight/repos/use-package/use-package.texi:90: warning: menu entry name should not contain `:'
/tmp/straight-spray-645/straight/repos/use-package/use-package.texi:91: warning: menu entry name should not contain `:'
/tmp/straight-spray-645/straight/repos/use-package/use-package.texi:92: warning: menu entry name should not contain `:'
/tmp/straight-spray-645/straight/repos/use-package/use-package.texi:93: warning: menu entry name should not contain `:'
/tmp/straight-spray-645/straight/repos/use-package/use-package.texi:94: warning: menu entry name should not contain `:'
/tmp/straight-spray-645/straight/repos/use-package/use-package.texi:95: warning: menu entry name should not contain `:'
/tmp/straight-spray-645/straight/repos/use-package/use-package.texi:96: warning: menu entry name should not contain `:'
/tmp/straight-spray-645/straight/repos/use-package/use-package.texi:97: warning: menu entry name should not contain `:'
/tmp/straight-spray-645/straight/repos/use-package/use-package.texi:98: warning: menu entry name should not contain `:'
/tmp/straight-spray-645/straight/repos/use-package/use-package.texi:99: warning: menu entry name should not contain `:'
/tmp/straight-spray-645/straight/repos/use-package/use-package.texi:100: warning: menu entry name should not contain `:'
/tmp/straight-spray-645/straight/repos/use-package/use-package.texi:101: warning: menu entry name should not contain `:'
/tmp/straight-spray-645/straight/repos/use-package/use-package.texi:102: warning: menu entry name should not contain `:'
/tmp/straight-spray-645/straight/repos/use-package/use-package.texi:103: warning: menu entry name should not contain `:'
/tmp/straight-spray-645/straight/repos/use-package/use-package.texi:104: warning: menu entry name should not contain `:'
/tmp/straight-spray-645/straight/repos/use-package/use-package.texi:105: warning: menu entry name should not contain `:'
/tmp/straight-spray-645/straight/repos/use-package/use-package.texi:282: warning: menu entry name should not contain `:'
/tmp/straight-spray-645/straight/repos/use-package/use-package.texi:283: warning: menu entry name should not contain `:'
/tmp/straight-spray-645/straight/repos/use-package/use-package.texi:284: warning: menu entry name should not contain `:'
/tmp/straight-spray-645/straight/repos/use-package/use-package.texi:285: warning: menu entry name should not contain `:'
/tmp/straight-spray-645/straight/repos/use-package/use-package.texi:286: warning: menu entry name should not contain `:'
/tmp/straight-spray-645/straight/repos/use-package/use-package.texi:287: warning: menu entry name should not contain `:'
/tmp/straight-spray-645/straight/repos/use-package/use-package.texi:288: warning: menu entry name should not contain `:'
/tmp/straight-spray-645/straight/repos/use-package/use-package.texi:289: warning: menu entry name should not contain `:'
/tmp/straight-spray-645/straight/repos/use-package/use-package.texi:290: warning: menu entry name should not contain `:'
/tmp/straight-spray-645/straight/repos/use-package/use-package.texi:291: warning: menu entry name should not contain `:'
/tmp/straight-spray-645/straight/repos/use-package/use-package.texi:292: warning: menu entry name should not contain `:'
/tmp/straight-spray-645/straight/repos/use-package/use-package.texi:293: warning: menu entry name should not contain `:'
/tmp/straight-spray-645/straight/repos/use-package/use-package.texi:294: warning: menu entry name should not contain `:'
/tmp/straight-spray-645/straight/repos/use-package/use-package.texi:295: warning: menu entry name should not contain `:'
/tmp/straight-spray-645/straight/repos/use-package/use-package.texi:296: warning: menu entry name should not contain `:'
/tmp/straight-spray-645/straight/repos/use-package/use-package.texi:297: warning: menu entry name should not contain `:'
/tmp/straight-spray-645/straight/repos/use-package/use-package.texi:298: warning: menu entry name should not contain `:'
/tmp/straight-spray-645/straight/repos/use-package/use-package.texi:299: warning: menu entry name should not contain `:'
/tmp/straight-spray-645/straight/repos/use-package/use-package.texi:300: warning: menu entry name should not contain `:'

[Return code: 0]

$ cd /home/n/Documents/devops/straight.el/issues/
$ install-info /tmp/straight-spray-645/straight/build/use-package/use-package.info /tmp/straight-spray-645/straight/build/use-package/dir

[Return code: 0]

$ cd /tmp/straight-spray-645/straight/repos/
$ git clone --origin origin --no-checkout https\://github.com/emacsmirror/spray.git /tmp/straight-spray-645/straight/repos/spray/

Cloning into '/tmp/straight-spray-645/straight/repos/spray'...

[Return code: 0]

$ cd /tmp/straight-spray-645/straight/repos/spray/
$ git branch -r

  origin/HEAD -> origin/master
  origin/master

[Return code: 0]

$ cd /tmp/straight-spray-645/straight/repos/spray/
$ git checkout -B master origin/master

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

[Return code: 0]

$ cd /tmp/straight-spray-645/straight/repos/spray/
$ git submodule update --init --recursive

[Return code: 0]


As an aside, the spray repository has been moved to https://lists.sr.ht/~iank/spray

That means installing from MELPA (instead of emacsmirror) will currently fail, as the recipe is stale.
I've contacted the package maintainer regarding this:

https://lists.sr.ht/~iank/spray/%3C87zh2mkftq.fsf%40gmail.com%3E

Once the MELPA recipe is updated upstream, I would recommend using that recipe repository over emacsmirror, as active development (bug fixes, features, etc) will not be propagated to the emacsmirror repository.

If the straight-bug-report macro is not available, please ensure you are using the development branch of straight.el.
This can be done by adding:

(setq straight-repository-branch "develop")

sadly this doesn't seem to get me the macro even when I start a fresh emacs with this before my straight bootstrap code. But the lexical bind trick is awesome!

I submitted a pull to update MELPA's spray recipe which has been merged here:

https://github.com/melpa/melpa/commit/b89bd1ada947b64f6c42dda14e626ef55127f8e5

This works now. Thanks!

Was this page helpful?
0 / 5 - 0 ratings