writers: add writeGuile[Bin] (#364531)
[NixPkgs.git] / pkgs / by-name / st / static-server / version.patch
blobc92d7e482ed49bc7e8a0c029a510afe05b704c35
1 --- a/internal/server/server.go
2 +++ b/internal/server/server.go
3 @@ -15,7 +15,6 @@ import (
4 "net"
5 "net/http"
6 "os"
7 - "runtime/debug"
8 "strings"
11 @@ -50,11 +49,7 @@ func Main() int {
12 flags.Parse(os.Args[1:])
14 if *versionFlag {
15 - if buildInfo, ok := debug.ReadBuildInfo(); ok {
16 - fmt.Printf("%v %v\n", programName, buildInfo.Main.Version)
17 - } else {
18 - errorLog.Printf("version info unavailable! run 'go version -m %v'", programName)
19 - }
20 + fmt.Printf("%v %v\n", programName, "@version@")
21 os.Exit(0)