Skip to content

Commit

Permalink
version number fix attempt 1
Browse files Browse the repository at this point in the history
  • Loading branch information
mosajjal committed May 29, 2021
1 parent 37d96ad commit c76ccfe
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion Dockerfile-release
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ RUN apk add --no-cache libcap-static libpcap-dev linux-headers git go file --rep

RUN git clone https://github.com/mosajjal/dnsmonster.git /opt/dnsmonster --depth 1 \
&& cd /opt/dnsmonster/src \
&& go build --ldflags "-L /usr/lib/libcap.a -linkmode external -extldflags \"-static\"" -o /tmp/dnsmonster-linux-amd64.bin
&& export RELEASE_VERSION=`git describe --tags` \
&& go build --ldflags "-L /usr/lib/libcap.a -linkmode external -X main.RELEASE_VERSION=$RELEASE_VERSION -extldflags \"-static\"" -o /tmp/dnsmonster-linux-amd64.bin


ENV CGO_ENABLED=1
Expand Down
2 changes: 1 addition & 1 deletion src/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/mosajjal/dnsmonster

go 1.15
go 1.16

require github.com/google/gopacket v1.1.19

Expand Down
4 changes: 2 additions & 2 deletions src/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import (
"github.com/namsral/flag"
)

const VERSION = "v0.8.3.2"
const RELEASE_VERSION = "DEVELOPMENT"

type splunkOutputEndpointList []string

Expand Down Expand Up @@ -121,7 +121,7 @@ func checkFlags() {
errorHandler(err)

if *version {
log.Fatalln("dnsmonster version:", VERSION)
log.Fatalln("dnsmonster version:", RELEASE_VERSION)
}

//TODO: log format needs to be a configurable parameter
Expand Down

0 comments on commit c76ccfe

Please sign in to comment.