diff --git a/ArchiveServer.go b/ArchiveServer.go index cd69bf3..a062448 100644 --- a/ArchiveServer.go +++ b/ArchiveServer.go @@ -7,8 +7,8 @@ import ( "time" ) -const ( - SERVER_VERSION = "archive/3.0" +var ( + SERVER_VERSION = "archive/0.0.0" ) type ArchiveServer struct { diff --git a/Makefile b/Makefile index 468f3e8..c19d004 100644 --- a/Makefile +++ b/Makefile @@ -9,7 +9,7 @@ SOURCES:=Makefile \ cmd $(wildcard cmd/archive-server/*.go) \ $(wildcard *.go) -GOFLAGS := -ldflags='-s -w' -gcflags='-trimpath=$(GOPATH)' -asmflags='-trimpath=$(GOPATH)' +GOFLAGS := -ldflags='-s -w -X archive.SERVER_VERSION="archive/${VERSION}"' -gcflags='-trimpath=$(GOPATH)' -asmflags='-trimpath=$(GOPATH)' # # Phony targets