Compare commits

..
Author SHA1 Message Date
sneak 49457a6abf more idiomatic makefile
check / check (push) Successful in 2m9s
2026-11-06 20:29:02 -08:00
sneak fe1fbeb177 Merge pull request 'Milestone: repo standards and macOS support' (#6) from next into main
check / check (push) Successful in 2m6s
Reviewed-on: #6
2026-11-07 05:24:17 +01:00
2 changed files with 28 additions and 2 deletions

No files matched your search

+4 -2
View File
@@ -3,7 +3,7 @@
# Target bodies live in script/ (Scripts to Rule Them All); the targets # Target bodies live in script/ (Scripts to Rule Them All); the targets
# below are thin shims that call them. # below are thin shims that call them.
.DEFAULT_GOAL := check .DEFAULT_GOAL := build
VERSION ?= $(shell git describe --tags --always) VERSION ?= $(shell git describe --tags --always)
@@ -37,7 +37,9 @@ cibuild:
hooks: hooks:
@script/install-precommit @script/install-precommit
build: build: ./bin/rtnetmon
./bin/rtnetmon: ./cmd ./internal go.sum go.mod
CGO_ENABLED=0 go build -trimpath -ldflags "-X main.Version=$(VERSION)" \ CGO_ENABLED=0 go build -trimpath -ldflags "-X main.Version=$(VERSION)" \
-o bin/rtnetmon ./cmd/rtnetmon -o bin/rtnetmon ./cmd/rtnetmon
+24
View File
@@ -15,3 +15,27 @@ from `main` onto `prod`; `prod` never follows `main` automatically.
Other issue branches do not touch this file; it changes only in its own PR to Other issue branches do not touch this file; it changes only in its own PR to
`next`, because every branch editing `TODO.md` conflicts with every other. `next`, because every branch editing `TODO.md` conflicts with every other.
# Status
On `next`:
- Repo standards (https://git.eeqj.de/sneak/rtnetmon/issues/1): the `script/`
entrypoints, the vendored `.golangci.yml`, and `REPO_POLICIES.md`.
- Interface detection on Linux and macOS
(https://git.eeqj.de/sneak/rtnetmon/issues/2).
- The fix for macOS VPN detection (https://git.eeqj.de/sneak/rtnetmon/issues/8).
- Starlink status lines (https://git.eeqj.de/sneak/rtnetmon/issues/3).
- A version stamp: built with `make build` or a plain `docker build .`, the
binary logs its git tag or short commit at startup
(https://git.eeqj.de/sneak/rtnetmon/issues/10).
- CI that runs `script/cibuild` on every push to a branch
(https://git.eeqj.de/sneak/rtnetmon/issues/12).
# Next Step
- `sneak` merges the milestone PR, https://git.eeqj.de/sneak/rtnetmon/pulls/6,
carrying `next` into `main`.
- A first run on a real Mac of what is on `next` now. The fix for
https://git.eeqj.de/sneak/rtnetmon/issues/8 has not run on a Mac yet;
`sneak`'s first run on his Mac is its test.