Claude curses at the Go compiler when writing a commit
Status Fixed / completed
Maintainer reply ✓ Yes — igorkofman
Activity 3 comments · opened Mar 2, 2025 · closed Mar 6, 2025
💡 Likely answer: A maintainer (igorkofman, collaborator)
responded on this thread — see the highlighted reply below.
This is a weird one.
There is this thing in the Go language where the compiler won't let you compile a program that has a package imported and not used, although certain packages related to color printing / pretty printing are very useful to always have around for debugging. Because I don't have a fancy IDE, I tend to just leave a private placeholder function that uses sth of each pkg to prevent a compiler error:
``` go
func placeholder() {
color.Redln(" 𝒻* 𝓎ℴ𝓊 𝒸ℴ𝓂𝓅𝒾𝓁ℯ𝓇")
pp.Println("𝓯* 𝔂𝓸𝓾 𝓬𝓸𝓶𝓹𝓲𝓵𝓮𝓻")
}
_(100% idiomatic best practices Go right here)_
And apparently, Claude noticed this pattern in my files, that there's always this cursing at the compiler, and when I asked it to write a commit, it cursed at the compiler [at the end of this commit](https://github.com/tassa-yoniso-manasi-karoto/langkit/commit/b58e6bd9ae3168d5aeb579fe699d0b6dc0c21302).
Additionally the "watermarking" with "🤖 Generated with [Claude Code]" has been added in at most only half of my commits made by Claude Code so far.
edit: it kept on doing it so I instructed it not to do it in Claude.md. Should be enough.
3 Comments
Thanks for the report. We'll talk to Claude about not cursing at compilers.
!Image
???
This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.