bcicen / slackcat

CLI utility to post files and command output to slack
http://slackcat.chat
MIT License
1.22k stars 57 forks source link

slackcat -v does not show the version number on OpenBSD #77

Closed kotfu closed 3 years ago

kotfu commented 3 years ago

Pulled repo today, should be version 1.7.1. Built on OpenBSD:

$ uname -a
OpenBSD fw1.kotfu.net 6.8 GENERIC.MP#5 amd64

using go 1.15.2:

$ go version
go version go1.15.2 openbsd/amd64

When I run slackcat and ask it to report the version, I get nothing useful:

$ slackcat -v
slackcat version , build

I'm no nothing about Go, but a quick peek at the source leads me to believe that it should show something like:

$ slackcat -v
slackcat version dev-build, build

It would be even nicer if it showed something like:

$ slackcat -v
slackcat version 1.7.1
kotfu commented 3 years ago

Tested the linux pre-build binary, and it appears this problem is unique to OpenBSD or my build on OpenBSD.