Project overview · CLI reference
Go 1.26 is required. The service uses Unix/Linux syscall.Flock, which currently prevents native Windows compilation and testing. Race tests require supported cgo and a C compiler; do not bypass those platform requirements by changing application code.
From the repository root:
CGO_ENABLED=0 go build -o /tmp/cad-provisioning \
./cmd/cad-provisioningThe Nix flake exports a default buildGo126Module package and a Go 1.26 development shell for x86_64-linux:
nix flake show path:.
nix flake check path:.
nix build path:.#defaultThe binary is result/bin/cad-provisioning. The package check phase runs go test -count=1 ./.... Its source fileset includes Go sources, go.mod, configuration, policy, and LICENSE; the license is installed at result/share/licenses/cad-provisioning/LICENSE, with Apache-2.0 metadata. JSON files are not embedded or automatically installed as runtime service configuration; select them as described in configuration.
The flake provides packages and development shells only, with no NixOS service module, automatic service installation, or declarative JSON override system. Keep dependency and environment changes tied to concrete needs, and do not hand-edit flake.lock.
From the repository root in a Go environment, run the existing tests and static analysis:
go test -count=1 ./...
go test -race -count=1 ./...
go vet ./...Enter the Go 1.26 development environment with Nix:
nix developThe same commands can be run in this environment. You can also run a single command:
nix develop --command go test -count=1 ./...Tests use fake HTTP servers to exercise the CLI, repository prerequisites, policy validation, apply ordering, webhooks, durable queue, and retention behavior. API compatibility with your Gitea version and Git push permissions require separate, controlled integration verification.