Commit 8ba160a
committed
The TinyGo build, and stop advertising a demo that is not in it
docs/tinygo/desktop.wasm carries the twelve new animations: 8.11 MB to
10.17 MB, two megabytes for the lot, against 20.6 MB for the standard Go
build of the same thing. /tinygo/?demo=parrot works now.
The build overlapped a go mod vendor of its own dependency tree, so it was
verified rather than trusted: every new demo name is in the binary and the
parrot renders in a browser. docs/desktop.wasm is rebuilt too and differs
from the committed copy by 115 bytes, all of them in the build-ID region at
the head of the file; the payload is byte-identical.
And a bug this turned up. cmd/gendemos imported demos/markdown
unconditionally while cmd/desktop imports it only under -tags tuimarkdown, so
the generated table listed a demo the shipped binary does not contain and
?demo=markdown has been answering "no demo called markdown". pterm never had
the problem because its build tag is on the demo package itself, which makes
it unimportable rather than merely unimported.
The fix puts gendemos behind the same tag: the default run now writes 42
demos and -tags tuimarkdown writes 43. A table generated from a different
build than the one that ships is a table that lies, and this one had been
lying since the demo was tagged out.1 parent 67efdb1 commit 8ba160a
6 files changed
Lines changed: 98 additions & 89 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
96 | 96 | | |
97 | 97 | | |
98 | 98 | | |
99 | | - | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
100 | 104 | | |
101 | 105 | | |
102 | 106 | | |
| |||
121 | 125 | | |
122 | 126 | | |
123 | 127 | | |
124 | | - | |
125 | 128 | | |
126 | 129 | | |
127 | 130 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | | - | |
38 | 37 | | |
39 | 38 | | |
40 | 39 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
Binary file not shown.
Binary file not shown.
0 commit comments