Skip to content

docs: expand Build from source with run, lint, and test details#16

Closed
ryans-posthog wants to merge 1 commit intomasterfrom
docs/expand-build-from-source
Closed

docs: expand Build from source with run, lint, and test details#16
ryans-posthog wants to merge 1 commit intomasterfrom
docs/expand-build-from-source

Conversation

@ryans-posthog
Copy link
Copy Markdown
Owner

Summary

  • Extend README's Build from source → For development section so a reader who just ran go build has a clear next step: verify the binary (./caddy version), run it (./caddy run --config ...), and discover the full CLI via ./caddy help.
  • Note macOS and Windows equivalents next to the existing Linux setcap tip (previously Linux-only).
  • Mention the -race flag (matches CI, see .github/workflows/ci.yml:137) and the integration tests under caddytest/.
  • Document the repo's existing .golangci.yml and .pre-commit-config.yaml so contributors can discover and install the tooling that already ships with the repo.

Only README.md is touched — no code, config, or new files.

Test plan

  • Render README on GitHub and confirm headings, code fences, and new links render cleanly.
  • cd cmd/caddy && go build && ./caddy version succeeds.
  • go test -race ./... runs (smoke: one package is fine).
  • golangci-lint run picks up .golangci.yml.
  • pre-commit install && pre-commit run --all-files runs the configured hooks.

Adds guidance to the top-level README's "Build from source → For
development" section so that a reader who just ran `go build` has a
path to actually running, testing, and linting the result:

- Show `./caddy version` and `./caddy run --config ...` after the
  build fence, and point at `./caddy help` / command-line docs
- Note macOS and Windows equivalents alongside the Linux setcap tip
- Mention the race-detector test run used by CI and the existing
  integration tests under caddytest/
- Document the repo's existing .golangci.yml and .pre-commit-config.yaml
  so contributors can discover and install them

No code or config is changed; only README.md.

Generated-By: PostHog Code
Task-Id: 4831e9d8-43a6-499c-8515-78be49215c18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant