Compare commits
1
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a9504848a2 |
+3
-4
@@ -71,11 +71,10 @@
|
|||||||
**/.vscode
|
**/.vscode
|
||||||
**/*.sublime-*
|
**/*.sublime-*
|
||||||
|
|
||||||
# This repository's own entries, after the shared content above: the
|
# This repository's own host-built artifacts, after the shared content
|
||||||
# frontend build, the viewport test's output, what `make build` and
|
# above: the frontend build, the viewport test's output, and what
|
||||||
# `make run` in backend/ leave behind, and log files at the root.
|
# `make build` and `make run` in backend/ leave behind.
|
||||||
/dist
|
/dist
|
||||||
/tmp
|
/tmp
|
||||||
/backend/netwatch-server
|
/backend/netwatch-server
|
||||||
/backend/data
|
/backend/data
|
||||||
/*.log
|
|
||||||
|
|||||||
@@ -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`, Go `GO_VERSION` unless the `go` on
|
corepack, `yarn install --frozen-lockfile`, the pinned Go unless one at least
|
||||||
`PATH` is exactly that version, the Go modules, and gcc with the C library
|
as new as `backend/go.mod` asks for is installed, the Go modules, and gcc with
|
||||||
headers unless gcc is installed, for the race detector in `make test` in
|
the C library headers unless gcc is installed, for the race detector in
|
||||||
`backend/`), linking what it installs itself into `~/.local/bin`, which has to
|
`make test` in `backend/`), linking what it installs itself into
|
||||||
be on `PATH`. It installs no Go linter and not Docker: `make test` and
|
`~/.local/bin`, which has to be on `PATH`. It installs no Go linter and not
|
||||||
`make lint` run in Docker
|
Docker: `make test` and `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
|
||||||
|
|||||||
+1
-2
@@ -192,8 +192,7 @@ 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
|
||||||
version="$(GOTOOLCHAIN=local go version 2>/dev/null)" || return 1
|
case "$(GOTOOLCHAIN=local go version 2>/dev/null)" in
|
||||||
case "$version" in
|
|
||||||
"go version go$GO_VERSION "*) return 0 ;;
|
"go version go$GO_VERSION "*) return 0 ;;
|
||||||
*) return 1 ;;
|
*) return 1 ;;
|
||||||
esac
|
esac
|
||||||
|
|||||||
Reference in New Issue
Block a user