mirror of
https://github.com/hanzoai/k8s.git
synced 2026-10-02 15:40:05 +00:00
The tree was staged but never committed — this is the repo's first commit, so it carries both the existing content and the zip v1.18.8 -> v1.20.0 migration. Migration: Prepare() is replaced by Build() error, and both test harnesses assert the verdict rather than discarding it. main.go:59's Use call needed no change — the three middleware constructors already return zip.Handler, which satisfies the closed Component interface. The committed projections (k8s.plugin.json, openapi.json, ops/zipdoc_gen.go) are regenerated: v1.20.0 splits an op's prose into summary (first line) + description and zipdoc now emits per-field docs, so all three artifacts move with the bump. Co-authored-by: Hanzo Dev <[email protected]>
30 lines
743 B
Makefile
30 lines
743 B
Makefile
# One entry point. `make test` runs every gate HIP-0106 §8 requires, and hanzo.yml's
|
|
# test: block invokes exactly this target — a gate CI does not call is a comment.
|
|
GO ?= go
|
|
export GOWORK = off
|
|
export GOPRIVATE = github.com/hanzoai/*
|
|
|
|
.PHONY: all build generate test vet clean
|
|
|
|
all: build
|
|
|
|
build:
|
|
$(GO) build -trimpath -o k8s .
|
|
|
|
# The projections. Both are FILES written by the binary from its own live router, and
|
|
# both are committed — the suite regenerates and fails on any diff, so a committed
|
|
# artifact is never a golden nothing forces back to source.
|
|
generate: build
|
|
$(GO) generate ./...
|
|
./k8s declare k8s.plugin.json
|
|
./k8s openapi openapi.json
|
|
|
|
vet:
|
|
$(GO) vet ./...
|
|
|
|
test: vet
|
|
$(GO) test ./... -count=1
|
|
|
|
clean:
|
|
rm -f k8s
|