Repository navigation
Commit 88cb1aa
committed
feat(opencode): switch from the default branch to the upstream v2 branch
OpenCode 2.x is the shipping line. The default branch still carries the 1.x
`opencode2` binary; v2 inverts that, installing `opencode` and symlinking
`opencode2` to it.
The input now follows the root nixpkgs instead of pinning opencode's own.
That drops an intermediate snapshot between releases and turns out to be
what makes the build work: the node_modules FOD hash is only served from
the binary cache for the derivation built from the root nixpkgs' bun, so
the old arrangement had to build it locally and hit a hash mismatch. See
the added note on #49063 for why that hash is not reproducible anyway.
v2 changed the process model, and both consumers needed porting:
- `oc()` used to scan for a free port and run `opencode --port`. v2 has no
root-level `--port`; every client attaches to one background daemon, so
the scan and the `OPENCODE_PORT` export are gone and the wrapper just
runs the TUI in a per-project tmux session.
- opencode.nvim likewise lost `opencode --port`. The plugin finds the
daemon through the state directory instead, so the terminal command is
plain `opencode`. It also stopped managing a per-invocation server
process, which is all lsof and procps were there for; curl stays, the
event stream is SSE.
opencode-desktop moved to electron 44.x, which is no longer EOL, so the
permittedInsecurePackages entry and the `electron_41` re-instancing that
existed to keep the host nixpkgs config applied to it both go away.
Blocked on anomalyco/opencode#51891, which fixes three defects that make
the v2 packages unbuildable: completions are generated through a removed
subcommand, nix/electron.nix carries hashes for electron 42.10.1 while the
desktop pins 44.4.3, and the desktop never stages the CLI package manifest
its prebuild reads. No local workarounds are carried for those.
Refs anomalyco/opencode#504081 parent 79c9a88 commit 88cb1aa
7 files changed
Lines changed: 34 additions & 57 deletions
File tree
- .serena/memories
- home-manager/modules
- development
- editors
- shell
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
141 | 141 | | |
142 | 142 | | |
143 | 143 | | |
144 | | - | |
| 144 | + | |
145 | 145 | | |
146 | 146 | | |
147 | 147 | | |
| |||
208 | 208 | | |
209 | 209 | | |
210 | 210 | | |
211 | | - | |
| 211 | + | |
| 212 | + | |
212 | 213 | | |
213 | 214 | | |
214 | 215 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
| 21 | + | |
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
18 | 23 | | |
19 | 24 | | |
20 | 25 | | |
| |||
170 | 175 | | |
171 | 176 | | |
172 | 177 | | |
173 | | - | |
174 | | - | |
175 | | - | |
176 | | - | |
| 178 | + | |
177 | 179 | | |
178 | 180 | | |
179 | 181 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
40 | 37 | | |
41 | 38 | | |
42 | 39 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
361 | 361 | | |
362 | 362 | | |
363 | 363 | | |
364 | | - | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
365 | 367 | | |
366 | 368 | | |
367 | 369 | | |
| |||
543 | 545 | | |
544 | 546 | | |
545 | 547 | | |
546 | | - | |
547 | | - | |
548 | | - | |
549 | | - | |
550 | | - | |
| 548 | + | |
| 549 | + | |
| 550 | + | |
551 | 551 | | |
552 | 552 | | |
553 | 553 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
126 | 126 | | |
127 | 127 | | |
128 | 128 | | |
129 | | - | |
130 | | - | |
131 | | - | |
132 | | - | |
133 | | - | |
134 | | - | |
135 | | - | |
136 | | - | |
137 | | - | |
138 | | - | |
139 | | - | |
| 129 | + | |
| 130 | + | |
140 | 131 | | |
141 | | - | |
142 | | - | |
| 132 | + | |
143 | 133 | | |
144 | 134 | | |
145 | | - | |
| 135 | + | |
146 | 136 | | |
147 | 137 | | |
148 | 138 | | |
| |||
0 commit comments