Skip to content

Conversation

@raphael
Copy link
Member

@raphael raphael commented Dec 17, 2025

The clean target was using rm -rf ./cmd/$(APP) which deletes the entire source directory. Since go build ./cmd/$(APP) outputs the binary to the current directory (not into cmd/), clean should remove ./$(APP) instead.

This prevents accidental deletion of customized cmd/ files (like the streaming example's http.go with pingPonger) when running make clean && make.

The clean target was using 'rm -rf ./cmd/$(APP)' which deletes the entire
source directory. Since 'go build ./cmd/$(APP)' outputs the binary to the
current directory (not into cmd/), clean should remove './$(APP)' instead.

This prevents accidental deletion of customized cmd/ files (like the
streaming example's http.go with pingPonger).
@raphael raphael merged commit d98851f into main Dec 17, 2025
4 checks passed
@raphael raphael deleted the fix-clean-target branch December 17, 2025 02:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants