Skip to content

Commit 36415a8

Browse files
Merge pull request rudolfochrist#2 from rudolfochrist/1-unable-to-setup
Update documentation
2 parents 1d6995d + 25310c0 commit 36415a8

4 files changed

Lines changed: 88 additions & 96 deletions

File tree

README.md

Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
2+
3+
# NAME
4+
5+
ql-https — HTTPS support for Quicklisp via curl
6+
7+
8+
# VERSION
9+
10+
0.5.0
11+
12+
13+
# SYNOPSIS
14+
15+
(asdf:load-system "ql-https")
16+
17+
18+
# DESCRIPTION
19+
20+
21+
## PREREQUISITES
22+
23+
- [Quicklisp](https://www.quicklisp.org/beta/)
24+
- curl (refer to your system package manager)
25+
26+
27+
## INSTALLATION
28+
29+
1. `mkdir ~/quicklisp` and `cd ~/quicklisp`
30+
2. Go to <https://beta.quicklisp.org/client/quicklisp.sexp> and lookup `:client-tar` URL, download it, verify
31+
hash and untar.
32+
3. Clone ql-https from <https://github.com/rudolfochrist/ql-https.git> to
33+
to `~/common-lisp/ql-https`
34+
4. Disconnect internet. (Prevent that anything leaks over HTTP during the installation)
35+
5. Start a fresh REPL and (require 'asdf)
36+
6. Load `~/common-lisp/ql-https/ql-setup.lisp`
37+
7. Eval `(asdf:load-system "ql-https")`
38+
8. Inspect `ql-http:*fetch-scheme-functions*` and verify everything was registered properly. Both `http` and
39+
`https` have `ql-https:fetcher` registered.
40+
9. Connect internet.
41+
10. Eval `(quicklisp:setup)` - use the USE-HTTPS restart if you hit the network.
42+
43+
Removing the *Missing client-info.sexp, using mock info* warning.
44+
45+
1. Eval `(ql:update-client)`
46+
2. move `~/quicklisp/tmp/client-info.sexp` to `~/quicklisp`
47+
48+
Watch ASCIInema:
49+
50+
[![asciicast](https://asciinema.org/a/585361.svg)](https://asciinema.org/a/585361)
51+
52+
53+
## STARTUP
54+
55+
(let ((quicklisp-init #p"~/common-lisp/ql-https/ql-setup.lisp"))
56+
(when (probe-file quicklisp-init)
57+
(load quicklisp-init)
58+
(asdf:load-system "ql-https")
59+
(uiop:symbol-call :quicklisp :setup)))
60+
61+
;; optional
62+
#+ql-https
63+
(setf ql-https:*quietly-use-https* t)
64+
65+
66+
# AUTHOR
67+
68+
Sebastian Christ (<mailto:rudolfo.christ@pm.me>)
69+
70+
71+
# COPYRIGHT
72+
73+
Copyright (c) 2022 Sebastian Christ (rudolfo.christ@pm.me)
74+
75+
76+
# LICENSE
77+
78+
Released under the MIT license.
79+

README.txt

Lines changed: 0 additions & 92 deletions
This file was deleted.

doc/README.org

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#+STARTUP: showall
2-
#+EXPORT_FILE_NAME: ../README.txt
2+
#+EXPORT_FILE_NAME: ../README.md
33
#+OPTIONS: toc:nil author:nil
44
# This is just the template README. Export to txt to get the real README.
55
* NAME
@@ -27,7 +27,7 @@ cat ../version
2727

2828
** INSTALLATION
2929

30-
1. =mkdir ~/quicklis= and =cd ~/quicklisp=
30+
1. =mkdir ~/quicklisp= and =cd ~/quicklisp=
3131
2. Go to [[https://beta.quicklisp.org/client/quicklisp.sexp]] and lookup =:client-tar= URL, download it, verify
3232
hash and untar.
3333
3. Clone ql-https from https://github.com/rudolfochrist/ql-https.git to
@@ -36,7 +36,8 @@ cat ../version
3636
5. Start a fresh REPL and (require 'asdf)
3737
6. Load =~/common-lisp/ql-https/ql-setup.lisp=
3838
7. Eval ~(asdf:load-system "ql-https")~
39-
8. Inspect ~ql-http:*scheme-functions*~ and verify everything was registered properly.
39+
8. Inspect ~ql-http:*fetch-scheme-functions*~ and verify everything was registered properly. Both =http= and
40+
=https= have =ql-https:fetcher= registered.
4041
9. Connect internet.
4142
10. Eval ~(quicklisp:setup)~ - use the USE-HTTPS restart if you hit the network.
4243

@@ -45,6 +46,10 @@ Removing the /Missing client-info.sexp, using mock info/ warning.
4546
1. Eval ~(ql:update-client)~
4647
2. move =~/quicklisp/tmp/client-info.sexp= to =~/quicklisp=
4748

49+
Watch ASCIInema:
50+
51+
#+MARKDOWN: [![asciicast](https://asciinema.org/a/585361.svg)](https://asciinema.org/a/585361)
52+
4853
** STARTUP
4954

5055
#+begin_src lisp

ql-https.lisp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
(invoke-restart 'use-https)))))
2727
(error "We don't use HTTP here!~&URL: ~A" url))
2828
(use-https ()
29-
:report "Retry with HTTP."
29+
:report "Retry with HTTPS."
3030
(apply #'fetcher
3131
(format nil "https~A" (subseq url 4))
3232
file

0 commit comments

Comments
 (0)