- flake.nix: rebrand description, add Go 1.25, gopls, gotools, staticcheck, golangci-lint, gnumake to all dev shells. Add a plain `dev` shell (`nix develop .#dev`) that does not wrap the shell in the bubblewrap sandbox so contributors can use a standard Go toolchain. - Dockerfile.dev: golang:1.22-bookworm with make, git, gopls and staticcheck, /workspace as default cwd. CGO disabled. - README: document both nix and Docker dev paths. flake.lock is committed for reproducibility. Closes #6. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
19 lines
376 B
Docker
19 lines
376 B
Docker
FROM golang:1.22-bookworm
|
|
|
|
RUN apt-get update \
|
|
&& apt-get install -y --no-install-recommends \
|
|
make \
|
|
git \
|
|
ca-certificates \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
RUN go install honnef.co/go/tools/cmd/staticcheck@latest \
|
|
&& go install golang.org/x/tools/gopls@latest
|
|
|
|
WORKDIR /workspace
|
|
|
|
ENV CGO_ENABLED=0 \
|
|
GOFLAGS=-mod=mod
|
|
|
|
CMD ["bash"]
|