1 Commits
Author SHA1 Message Date
sneak 86ad75952a Re-vendor the shared files from sneak/prompts at dd4027b (closes #113)
check / check (push) Canceled after 0s
The shared files are the sneak/prompts copies at dd4027b, with this
repository's own entries after them. make lint and make test each build
one Dockerfile phase without the cache, both covering the frontend
through a node stage; the builder stage waits on both and takes its
version from git describe unless VERSION is given. golangci-lint moves
to v2.14.0 with the new .golangci.yml; one test spells X-Request-ID as
canonicalheader asks. prettier formats only JavaScript, CSS, HTML and
Markdown, so .golangci.yml stays as fetched. script/fmt and
script/fmt-check put ~/.local/bin on PATH, which the shared workflow no
longer does. script/bootstrap keeps a Go only if it is exactly
GO_VERSION, and re-checks the go on PATH after installing.

Model: opus-5-5
2026-10-07 10:09:29 +00:00
3 changed files with 12 additions and 10 deletions
+4 -3
View File
@@ -71,10 +71,11 @@
**/.vscode **/.vscode
**/*.sublime-* **/*.sublime-*
# This repository's own host-built artifacts, after the shared content # This repository's own entries, after the shared content above: the
# above: the frontend build, the viewport test's output, and what # frontend build, the viewport test's output, what `make build` and
# `make build` and `make run` in backend/ leave behind. # `make run` in backend/ leave behind, and log files at the root.
/dist /dist
/tmp /tmp
/backend/netwatch-server /backend/netwatch-server
/backend/data /backend/data
/*.log
+6 -6
View File
@@ -41,12 +41,12 @@ halves, so the root `make check` fails if either one is broken. We provide:
- `script/bootstrap` — install all dependencies (the pinned node via nvm unless - `script/bootstrap` — install all dependencies (the pinned node via nvm unless
one new enough for the frontend's dependencies is installed, yarn via one new enough for the frontend's dependencies is installed, yarn via
corepack, `yarn install --frozen-lockfile`, the pinned Go unless one at least corepack, `yarn install --frozen-lockfile`, Go `GO_VERSION` unless the `go` on
as new as `backend/go.mod` asks for is installed, the Go modules, and gcc with `PATH` is exactly that version, the Go modules, and gcc with the C library
the C library headers unless gcc is installed, for the race detector in headers unless gcc is installed, for the race detector in `make test` in
`make test` in `backend/`), linking what it installs itself into `backend/`), linking what it installs itself into `~/.local/bin`, which has to
`~/.local/bin`, which has to be on `PATH`. It installs no Go linter and not be on `PATH`. It installs no Go linter and not Docker: `make test` and
Docker: `make test` and `make lint` run in Docker `make lint` run in Docker
- `script/setup` — make a fresh clone ready for development: bootstrap plus the - `script/setup` — make a fresh clone ready for development: bootstrap plus the
git pre-commit hook git pre-commit hook
- `script/dev` — run the Vite dev server, which proxies `/api` to a locally - `script/dev` — run the Vite dev server, which proxies `/api` to a locally
+2 -1
View File
@@ -192,7 +192,8 @@ ensure_yarn() {
go_ok() { go_ok() {
if missing go; then return 1; fi if missing go; then return 1; fi
[ -x "$(dirname "$(command -v go)")/gofmt" ] || return 1 [ -x "$(dirname "$(command -v go)")/gofmt" ] || return 1
case "$(GOTOOLCHAIN=local go version 2>/dev/null)" in version="$(GOTOOLCHAIN=local go version 2>/dev/null)" || return 1
case "$version" in
"go version go$GO_VERSION "*) return 0 ;; "go version go$GO_VERSION "*) return 0 ;;
*) return 1 ;; *) return 1 ;;
esac esac