docs(readme): use make instead of make build in build steps#174
docs(readme): use make instead of make build in build steps#174
make instead of make build in build steps#174Conversation
There was a problem hiding this comment.
Pull request overview
Updates the README build instructions so a fresh clone runs code generation before compiling, aligning the docs with the Makefile’s default all: generate build target and avoiding missing generated template files for new contributors.
Changes:
- Replace
make buildwithmakein Quick Start build steps. - Replace
make buildwithmakein “Build from Source” steps.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| # Build the server (runs `generate` then `build` via the default `all` target) | ||
| make |
There was a problem hiding this comment.
The Quick Start prerequisites list Make as “optional”, but the updated build step now requires make (default all). To avoid confusing new contributors, either update the prerequisites to mark Make as required for these steps, or add an explicit non-make alternative build command sequence.
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
Summary
make buildwithmakein the Quick Start and Build from Source sections so a fresh clone runsgeneratebeforebuildvia the Makefile's defaultall: generate buildtarget.internal/templates/*_templ.gohasn't been generated without the Makefile change proposed in fix: add generate dependency to build target #173.Test plan
go run -modfile=go.tools.mod scripts/build_assets.go --minify
Built: main-AD2EMZ77.css
Built: main-57ZPFXAY.js
Generated: internal/templates/asset_paths.go
go tool -modfile=go.tools.mod swag init -g main.go --output api --parseDependency --parseInternal
2026/04/23 18:54:27 Generate swagger docs....
2026/04/23 18:54:27 Generate general API Info, search dir:./
2026/04/23 18:54:29 warning: failed to evaluate const mProfCycleWrap at /Users/mtk10671/.gvm/gos/go1.26.2/src/runtime/mprof.go:179:7, reflect: call of reflect.Value.Len on zero Value
2026/04/23 18:54:29 Generating handlers.JWKSResponse
2026/04/23 18:54:29 Generating handlers.JSONWebKey
2026/04/23 18:54:29 Generating handlers.discoveryMetadata
2026/04/23 18:54:29 Generating handlers.clientRegistrationRequest
2026/04/23 18:54:29 create docs.go at api/docs.go
2026/04/23 18:54:29 create swagger.json at api/swagger.json
2026/04/23 18:54:29 create swagger.yaml at api/swagger.yaml
go generate ./...
go build -v -tags '' -ldflags '-s -w -X 'github.com/go-authgate/authgate/internal/version.Version=v0.25.0-15-g2234db1' -X 'github.com/go-authgate/authgate/internal/version.BuildTime=2026-04-23T18:54:30' -X 'github.com/go-authgate/authgate/internal/version.GitCommit=2234db1ceb3d7fb4a8a0fab3c6b19fc90620dd46' -X 'github.com/go-authgate/authgate/internal/version.GoVersion=go1.26.2' -X 'github.com/go-authgate/authgate/internal/version.BuildOS=darwin' -X 'github.com/go-authgate/authgate/internal/version.BuildArch=arm64'' -o bin/authgate . — binary builds at Usage: bin/authgate [OPTIONS] COMMAND
OAuth 2.0 Device Authorization Grant server
Commands:
server Start the OAuth server
Options:
-v, --version Show version information
-h, --help Show this help message with no templ errors
Git commit: 2234db1
Build time: 2026-04-23T18:54:30
Go version: go1.26.2
Built for: darwin/arm64 prints version info
604:make build_linux_arm64 only matches go mod download -modfile=go.tools.mod
go run -modfile=go.tools.mod scripts/build_assets.go --minify
Built: main-AD2EMZ77.css
Built: main-57ZPFXAY.js
Generated: internal/templates/asset_paths.go
go tool -modfile=go.tools.mod swag init -g main.go --output api --parseDependency --parseInternal
2026/04/23 18:54:39 Generate swagger docs....
2026/04/23 18:54:39 Generate general API Info, search dir:./
2026/04/23 18:54:41 warning: failed to evaluate const mProfCycleWrap at /Users/mtk10671/.gvm/gos/go1.26.2/src/runtime/mprof.go:179:7, reflect: call of reflect.Value.Len on zero Value
2026/04/23 18:54:41 Generating handlers.JWKSResponse
2026/04/23 18:54:41 Generating handlers.JSONWebKey
2026/04/23 18:54:41 Generating handlers.discoveryMetadata
2026/04/23 18:54:41 Generating handlers.clientRegistrationRequest
2026/04/23 18:54:41 create docs.go at api/docs.go
2026/04/23 18:54:41 create swagger.json at api/swagger.json
2026/04/23 18:54:41 create swagger.yaml at api/swagger.yaml
go generate ./...
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -a -tags '' -ldflags '-s -w -X 'github.com/go-authgate/authgate/internal/version.Version=v0.25.0-15-g2234db1' -X 'github.com/go-authgate/authgate/internal/version.BuildTime=2026-04-23T18:54:43' -X 'github.com/go-authgate/authgate/internal/version.GitCommit=2234db1ceb3d7fb4a8a0fab3c6b19fc90620dd46' -X 'github.com/go-authgate/authgate/internal/version.GoVersion=go1.26.2' -X 'github.com/go-authgate/authgate/internal/version.BuildOS=darwin' -X 'github.com/go-authgate/authgate/internal/version.BuildArch=arm64'' -o release/linux/amd64/authgate . / go mod download -modfile=go.tools.mod
go run -modfile=go.tools.mod scripts/build_assets.go --minify
Built: main-AD2EMZ77.css
Built: main-57ZPFXAY.js
Generated: internal/templates/asset_paths.go
go tool -modfile=go.tools.mod swag init -g main.go --output api --parseDependency --parseInternal
2026/04/23 18:55:05 Generate swagger docs....
2026/04/23 18:55:05 Generate general API Info, search dir:./
2026/04/23 18:55:07 warning: failed to evaluate const mProfCycleWrap at /Users/mtk10671/.gvm/gos/go1.26.2/src/runtime/mprof.go:179:7, reflect: call of reflect.Value.Len on zero Value
2026/04/23 18:55:07 Generating handlers.JWKSResponse
2026/04/23 18:55:07 Generating handlers.JSONWebKey
2026/04/23 18:55:07 Generating handlers.discoveryMetadata
2026/04/23 18:55:07 Generating handlers.clientRegistrationRequest
2026/04/23 18:55:07 create docs.go at api/docs.go
2026/04/23 18:55:07 create swagger.json at api/swagger.json
2026/04/23 18:55:07 create swagger.yaml at api/swagger.yaml
go generate ./...
CGO_ENABLED=0 GOOS=linux GOARCH=arm64 go build -a -tags '' -ldflags '-s -w -X 'github.com/go-authgate/authgate/internal/version.Version=v0.25.0-15-g2234db1' -X 'github.com/go-authgate/authgate/internal/version.BuildTime=2026-04-23T18:55:08' -X 'github.com/go-authgate/authgate/internal/version.GitCommit=2234db1ceb3d7fb4a8a0fab3c6b19fc90620dd46' -X 'github.com/go-authgate/authgate/internal/version.GoVersion=go1.26.2' -X 'github.com/go-authgate/authgate/internal/version.BuildOS=darwin' -X 'github.com/go-authgate/authgate/internal/version.BuildArch=arm64'' -o release/linux/arm64/authgate . (which already depend on )
Closes #172
🤖 Generated with Claude Code
EOF
)