Skip to content

Commit

Permalink
sane version reporting
Browse files Browse the repository at this point in the history
  • Loading branch information
rusq committed Oct 11, 2024
1 parent b6666b8 commit eb3f578
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
5 changes: 3 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,12 @@ CMD=./cmd/slackdump
OUTPUT=slackdump
EXECUTABLE=slackdump
BUILD=$(shell git describe --tags)
BUILD_YEAR=$(shell date +%Y)
BUILD_DATE=$(shell TZ=UTC date +%Y-%m-%d\ %H:%M:%SZ)
COMMIT=$(shell git rev-parse --short HEAD)

PKG=github.com/rusq/slackdump/v3

LDFLAGS="-s -w -X 'main.build=$(BUILD)' -X 'main.buildYear=$(BUILD_YEAR)'"
LDFLAGS="-s -w -X 'main.commit=$(COMMIT)' -X 'main.version=$(BUILD)' -X 'main.date=$(BUILD_DATE)'"
OSES=linux darwin windows
DISTFILES=README.rst LICENSE
ZIPFILES=$(foreach s,$(OSES),$(OUTPUT)-$s.zip)
Expand Down
1 change: 0 additions & 1 deletion cmd/slackdump/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,6 @@ BigCmdLoop:
if err := invoke(cmd, args); err != nil {
msg := fmt.Sprintf("Error %03[1]d (%[1]s): %[2]s", base.ExitStatus(), err)
logger.Default.Print(msg)
fmt.Fprintln(os.Stderr, msg)
}
base.Exit()
return
Expand Down

0 comments on commit eb3f578

Please sign in to comment.