Add a -version command to weave and weaver, implemented by embedding the build date by the makefile
This commit is contained in:
1 parent
6483c89a2b
commit
21bec9fc78
3 files changed
+20
-1
No files matched your search
+1
-1
@@ -3,7 +3,7 @@
|
||||
all: docker-image
|
||||
|
||||
weaver: ../*.go main.go
|
||||
go build -ldflags '-extldflags "-static"'
|
||||
go build -ldflags="-X main.builddate \"`date -u -Iseconds`\" -extldflags '-static'"
|
||||
|
||||
.PHONY: docker-image
|
||||
|
||||
|
||||
Reference in new issue
Block a user