diff options
| author | Max Resnick <max@ofmax.li> | 2025-07-26 15:01:27 -0700 |
|---|---|---|
| committer | Max Resnick <max@ofmax.li> | 2025-07-26 15:01:27 -0700 |
| commit | 462bfd8fc9707a5eae3233e69f5b8a522972ed74 (patch) | |
| tree | 1bb618b965953503c6d7bd04dad3335bf6d88f59 /CLAUDE.md | |
| parent | c56c998b2b13bd095843243f3fe3dacb0a2d92a5 (diff) | |
| download | go-git-server-462bfd8fc9707a5eae3233e69f5b8a522972ed74.tar.gz | |
Diffstat (limited to 'CLAUDE.md')
| -rw-r--r-- | CLAUDE.md | 33 |
1 files changed, 30 insertions, 3 deletions
@@ -63,10 +63,10 @@ just clean ### Token Management ```bash # Generate new authentication token -go run cmd/tokentool/main.go -generate -name <username> +TMPDIR=/tmp/go-build go run cmd/tokentool/main.go -generate -name <username> # List existing tokens -go run cmd/tokentool/main.go -list +TMPDIR=/tmp/go-build go run cmd/tokentool/main.go -list # Generate token directly from main binary ./main -g @@ -80,6 +80,21 @@ go run cmd/tokentool/main.go -list - **Linting**: Uses golangci-lint - **Build System**: Uses `just` (justfile) for task automation - **Container**: Designed for Kubernetes deployment with minimal dependencies +- **TMPDIR**: Use `TMPDIR=/tmp/go-build` for `go run` commands if /tmp filesystem doesn't allow executables + +## Large File Support + +For pushing large binary files (>1MB), clients need to increase git's HTTP POST buffer: + +```bash +# Global configuration (recommended) +git config --global http.postBuffer 524288000 + +# Per-repository configuration +git config http.postBuffer 524288000 +``` + +This setting allows git to handle large file pushes over HTTP without timing out. ## Configuration Files @@ -94,4 +109,16 @@ From `CONVENTIONS.md`: - Prefer idiomatic Go code - Minimize dependencies - Expert-level Git and Go programming expected -- Building a proxy server for `git-http-backend`
\ No newline at end of file +- Building a proxy server for `git-http-backend` + +# Workflow + +1. Write Tests +2. Lint Code +3. Commit +4. Write Code +5. Lint +6. Run tests +7. Fix Code +8. Lint +6. Iterate |