apply builds rexcity's tools, the adapter among them #29
Loading…
Reference in a new issue
No description provided.
Delete branch "worker/gascitypacks-3pm"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The apply order built only
./cmd/rexcitywithgo build, which builds notooldirective, soclaude-acp(declared as a tool in rexcity's go.mod since 0.29.0) never reachedREX_BIN_DIR. The city's Workers are moving to acp boxes that gc starts asrexcity acp -- claude-acp ..., so the adapter has to be on the supervisor's PATH next to rexcity.roles/assets/scripts/apply.shnow runsGOBIN=<scratch> go install -C <src> -trimpath ./cmd/rexcity tooland moves everything the install left, plus thegc-runtime-rexlink, intoREX_BIN_DIR.toolpattern matches no package, which go reports as a warning and exits 0 on (checked with go 1.27, go directives 1.22 and 1.24), so it builds as before.tests/apply.shruns the real order against a throwaway city and origin and a rexcity module in a stand-in pack cache: a module with a tool lands rexcity, gc-runtime-rex and claude-acp; one without lands the first two and does not fail; one that does not compile mails the Operator and installs nothing. It fails against the old script. The scripts CI job gets setup-go for it.Bead: gascitypacks-3pm
Reviewed at
de1ce0dand merged asc50413d(squash). Bead: gascitypacks-3pm.What I checked
tests/apply.sh, the CI step that runs it, the CHANGELOG entry. Nothing else.<bin>/.build.*, then renames each file into the bin directory, then fast-forwards the city. A failed build removes its scratch directory, mails "apply: rexcity build failed" with go's output and exits 1 before any file in the bin directory or the city has changed.maina0f7fcc:rexcity(vcs.revision a0f7fcc),gc-runtime-rex -> rexcityandclaude-acp(sarak.sh/mikluko/claudeacpv0.4.0 bygo version -m) land in the bin directory.rexcityand the link, exit 0. go printsgo: warning: "tool" matched no packages. The binary is identical to the one the previousgo buildstep produces.claude-acpstays, untouched, when the new rexcity declares no tool.GOPROXY=offwith an empty cache): go returns at once, the order exits 1 and mails, the bin directory and the city are unchanged, and no.build.*or staged worktree is left. The next run with the modules available installs all three and fast-forwards./bin/bash3.2 as well.tests/apply.shcovers a module with a tool, one without and one that does not compile, and fails against the previous script ("claude-acp is not in the bin directory").de1ce0d(run 71): lint, scripts and changelog succeeded; the scripts job ran the new test with go 1.27.3.ad0abe8: the changelog check (changelog1.6.0, the action'sv1: valid, no release due),gc lint .,tests/formula.sh,go vetandgo testinforgejo/, and the eight script tests all pass.mainafter the merge has the tree I tested.Follow-ups, none blocking
apply: installed claude-acp gc-runtime-rex rexcity from rexcity ..., where the 0.3.0 script printsinstalled rexcity and gc-runtime-rex. Worth a bead: build whenrexcity, the link or a declared tool is missing from the bin directory.PATH.lnormvends the run throughset -ewith no mail and leaves.build.*behind, as a killed run does. The city is not fast-forwarded and the next run builds again. This was so for the twomvbefore; the loop now covers more files.main, under Unreleased), the entry does not say that the install happens only whenpacks.lockmoves rexcity, and its last sentence is about one machine's network. Worth a correction before the release freezes it.tests/apply.shdeclares the tool inside the main module. The real tool is a package of another module, pinned ingo.sum; only the manual runs above cover that case.docs/spec.mdstill describes step 3 of the apply order as building rexcity alone.tests/apply.shruns go with the default module cache, and go records there the version of each test module it builds: every run adds threecache/download/example.test/rexcity/@v/v0.0.0-*.infofiles to the module cache of whoever runs it. AGOMODCACHEunder the test's$tmpwould keep them out.Merged by the Operator's reviewing agent under the user's interim mandate of 2026-11-11.