diff options
| author | Kyren223 <kyren223@proton.me> | 2025-08-03 15:41:16 +0300 |
|---|---|---|
| committer | Kyren223 <kyren223@proton.me> | 2025-08-03 15:41:16 +0300 |
| commit | 3feffc0f77c5c525be15981791d948dc65784297 (patch) | |
| tree | 35265b56469dabb7fa65fc02e3f9fa16c0e60488 /embeds | |
| parent | 9913e614ec9ecfa73551c72813ef39f125b310f5 (diff) | |
Directly embedding version inside the app instead of injecting it at
build time, so there is always only one source of truth
Diffstat (limited to 'embeds')
| -rw-r--r-- | embeds/VERSION | 1 | ||||
| -rw-r--r-- | embeds/embeds.go | 4 |
2 files changed, 4 insertions, 1 deletions
diff --git a/embeds/VERSION b/embeds/VERSION new file mode 100644 index 0000000..3527dbc --- /dev/null +++ b/embeds/VERSION @@ -0,0 +1 @@ +v0.0.11 diff --git a/embeds/embeds.go b/embeds/embeds.go index 2cf0dcc..8bb7787 100644 --- a/embeds/embeds.go +++ b/embeds/embeds.go @@ -21,8 +21,10 @@ import ( "sync/atomic" ) +//go:embed VERSION +var Version string + var ( - Version string = "unknown" Commit string = "unknown" BuildDate string = "unknown" ) |
