title: Heroku local is not using my latest code. Why?
body: <p>I'm trying to get a very simple database-backed golang heroku app working as a hello world.</p>
  
  <p>The deployed Heroku version of my app is working perfectly, and if I manually test it locally, it works perfectly, but <code>heroku local</code> is stubbornly using an old version of my code. Specifically:</p>
  
  <pre><code>$ heroku local
  forego | starting web.1 on port 8080
  </code></pre>
  
  <p>works, but unexpectedly serves an older version of the app. On the other hand, this:</p>
  
  <pre><code>$ go run web.go
  </code></pre>
  
  <p>and this:</p>
  
  <pre><code>$ git push heroku master
  Everything up-to-date
  $ heroku open
  </code></pre>
  
  <p>both serve what I expect, which is the latest version of my code.</p>
  
  <p>This is really confusing me. I've read all the documentation and double checked the state of everything, and can't find anything that indicates what is going on, or which could cause it.</p>
  
  <p>My best guess are that <code>heroku local</code> is using a compiled slug from somewhere that is not getting updated.</p>