diff options
| author | Priyansh <[email protected]> | 2025-08-27 15:05:47 +0530 |
|---|---|---|
| committer | Priyansh <[email protected]> | 2025-08-27 15:05:47 +0530 |
| commit | 8f84fe9466567e9f127b8f2b180a06fe6fe9b3bd (patch) | |
| tree | f3371b057722f0a91398125c5feabd61c50684e8 /build | |
| parent | 9c61cca6fcaf3d4b6aadd078aaec6ac9ce40812c (diff) | |
| download | nectar-8f84fe9466567e9f127b8f2b180a06fe6fe9b3bd.tar.xz nectar-8f84fe9466567e9f127b8f2b180a06fe6fe9b3bd.zip | |
simplify build file to set version via makefile
Diffstat (limited to 'build')
| -rw-r--r-- | build/build.go | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/build/build.go b/build/build.go index de6af5d..2c09054 100644 --- a/build/build.go +++ b/build/build.go @@ -1,17 +1,7 @@ package build -import "runtime/debug" - -// Version is dynamically set during build by the toolchain or overridden in the Makefile. +// Version is set during build via ldflags var Version = "dev" -// Date is dynamically set during build time in the Makefile. +// Date is set during build via ldflags var Date = "unknown" - -func init() { - if Version == "dev" { - if info, ok := debug.ReadBuildInfo(); ok && info.Main.Version != "(devel)" { - Version = info.Main.Version - } - } -} |
