Skip to content

Commit abe3fa0

Browse files
fix two build issues
Signed-off-by: Rafael Espinoza <[email protected]>
1 parent b26d609 commit abe3fa0

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ DEPENDENCIES =
77
BASE_PATH := $(shell pwd)
88
BUILD_PATH := $(BASE_PATH)/build
99
VERSION ?= $(shell git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/\1/')
10-
BUILD ?= $(shell date)
10+
BUILD ?= $(shell date --utc --rfc-3339=seconds | tr ' ' 'T')
1111
ASSETS := static
1212

1313
# PACKAGES
@@ -27,7 +27,7 @@ all: test build
2727

2828
build: dependencies
2929
for cmd in $(COMMANDS); do \
30-
$(GOCMD) build -ldflags "-X main.version $(VERSION) -X main.build \"$(BUILD)\"" $${cmd}.go; \
30+
$(GOCMD) build -ldflags "-X main.version=$(VERSION) -X main.build=$(BUILD)" $${cmd}.go; \
3131
done
3232

3333
test: dependencies

cli/put.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ type PutCommand struct {
1212
Body string `short:"b" long:"body" description:"plain text data for the job." required:"true"`
1313
Priority uint32 `short:"p" long:"priority" description:"priority for the job." default:"1024"`
1414
Delay time.Duration `short:"d" long:"delay" description:"delay for the job." default:"0"`
15-
TTR time.Duration `short:"" long:"ttr" description:"TTR for the job." default:"60"`
15+
TTR time.Duration `short:"" long:"ttr" description:"TTR for the job." default:"60s"`
1616

1717
Command
1818
}

0 commit comments

Comments
 (0)