4bb8947ecf
- C4: Propagate request context through semaphores and upstream calls - C5: Make client rate limiter cleanup goroutine idempotent via sync.Once - P1: Streaming response path using io.Copy instead of full materialization - P2: Gate promotion goroutines to files >= 64KiB - P3: Reduce global lock contention during eviction - P4: Demote hot-path logging and compact metrics output - R1: Add upstream URL scheme/host validation - R4: Add cache file format version + tolerant deserialization - Makefile: Make build-snapshot-single practical by using -short tests - Config: Add GetDefaultConfig + Validate for better testability and R1 coverage All changes follow the "smallest safe diff" principle from the review. Safe test suite now builds and runs cleanly via make build-snapshot-single. Ref: docs/reviews/steamcache2-production-hardening-review-2026-05-26.md
22 lines
831 B
Makefile
22 lines
831 B
Makefile
run: build-snapshot-single ## Run the application
|
|
@dist/default_windows_amd64_v1/steamcache2.exe
|
|
run-debug: build-snapshot-single ## Run the application with debug logging
|
|
@dist/default_windows_amd64_v1/steamcache2.exe --log-level debug
|
|
|
|
test: deps ## Run all tests
|
|
@go test -v ./...
|
|
|
|
deps: ## Download dependencies
|
|
@go mod tidy
|
|
|
|
build-snapshot-single: deps ## Build a snapshot of the application for the current platform (uses -short for fast feedback)
|
|
@go test -short -v ./...
|
|
@goreleaser build --single-target --snapshot --clean
|
|
|
|
help: ## Show this help message
|
|
@echo steamcache2 Makefile
|
|
@echo Available targets:
|
|
@echo run Run the application
|
|
@echo run-debug Run the application with debug logging
|
|
@echo test Run all tests
|
|
@echo deps Download dependencies
|