<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>Gitignore on Deeka</title>
    <link>https://deeka.work/tags/gitignore/</link>
    <description>Recent content in Gitignore on Deeka</description>
    <generator>Hugo -- 0.161.1</generator>
    <language>en-us</language>
    <lastBuildDate>Mon, 18 May 2026 03:30:00 +0000</lastBuildDate>
    <atom:link href="https://deeka.work/tags/gitignore/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>The .gitignore Pattern That Broke My CI Build</title>
      <link>https://deeka.work/bytes/gitignore-pattern-broke-ci-build/</link>
      <pubDate>Mon, 18 May 2026 03:30:00 +0000</pubDate>
      <guid>https://deeka.work/bytes/gitignore-pattern-broke-ci-build/</guid>
      <description>&lt;p&gt;I spent an hour debugging a failed deployment on Coolify. The Go build was dying at &lt;code&gt;go build ./cmd/server&lt;/code&gt; with exit code 1 — no useful error, just silence.&lt;/p&gt;
&lt;p&gt;The code compiled perfectly locally. Cross-compilation to &lt;code&gt;linux/amd64&lt;/code&gt; worked fine. No platform-specific files. Clean &lt;code&gt;go mod verify&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;Then I ran &lt;code&gt;git check-ignore -v cmd/server/main.go&lt;/code&gt; and saw this:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;.gitignore:7:server    cmd/server/main.go
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;My &lt;code&gt;.gitignore&lt;/code&gt; had:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code class=&#34;language-gitignore&#34; data-lang=&#34;gitignore&#34;&gt;# Compiled binary
server
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;That single word &lt;code&gt;server&lt;/code&gt; — without a leading &lt;code&gt;/&lt;/code&gt; — matches any path segment named &lt;code&gt;server&lt;/code&gt;. It was silently excluding my entire &lt;code&gt;cmd/server/&lt;/code&gt; directory from git. The entrypoint was never pushed. Coolify cloned an empty &lt;code&gt;cmd/server/&lt;/code&gt; folder and &lt;code&gt;go build&lt;/code&gt; had nothing to compile.&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
