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.

View original on GitHub ↗

3 Comments

igorkofman collaborator · 1 year ago

Thanks for the report. We'll talk to Claude about not cursing at compilers.

tassa-yoniso-manasi-karoto · 1 year ago

!Image

???

github-actions[bot] · 1 year ago

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.