codeberg-pages: embed correct version number via ldflags
Currently, `pages -v` just shows `pages-server version dev`. With this, it becomes e.g. `pages-server version 6.2` as it should be. Signed-off-by: Christoph Heiss <christoph@c8h4.io>
This commit is contained in:
@@ -27,6 +27,8 @@ buildGoModule rec {
|
||||
ldflags = [
|
||||
"-s"
|
||||
"-w"
|
||||
"-X"
|
||||
"codeberg.org/codeberg/pages/server/version.Version=${version}"
|
||||
];
|
||||
|
||||
tags = [
|
||||
|
||||
Reference in New Issue
Block a user