Commit 3e7f5fa
fix(version): use SOURCE_VERSION env var for Heroku deployments
When built without ldflags (e.g., Heroku Go buildpack), GitCommit
defaults to "development". Now checks SOURCE_VERSION environment
variable at startup as fallback, which Heroku sets to the git SHA
during builds.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>1 parent 24f7dad commit 3e7f5fa
2 files changed
+18
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
7 | 8 | | |
8 | 9 | | |
9 | 10 | | |
| |||
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
15 | 31 | | |
16 | 32 | | |
17 | 33 | | |
| |||
29 | 45 | | |
30 | 46 | | |
31 | 47 | | |
32 | | - | |
| 48 | + | |
33 | 49 | | |
34 | 50 | | |
35 | 51 | | |
| |||
0 commit comments