From e22a36a7aa69de2423882602094880fcbe066770 Mon Sep 17 00:00:00 2001 From: Jon Lundy Date: Fri, 16 Mar 2018 08:10:34 -0600 Subject: [PATCH] add stats --- Gopkg.lock | 5 +++-- cmd/paste/config.go | 1 + debian/Makefile | 2 +- debian/RELEASE | 2 +- 4 files changed, 6 insertions(+), 4 deletions(-) diff --git a/Gopkg.lock b/Gopkg.lock index dc2c5c2..60d7ae1 100644 --- a/Gopkg.lock +++ b/Gopkg.lock @@ -136,13 +136,14 @@ "httpsrv", "ident", "log", + "stats", "uuid" ] - revision = "344ebf6e3dd9b0061ec2f85c6fef0ebe4c24c22d" + revision = "759e8f45c879eff072f60341cb151c82235da02d" [solve-meta] analyzer-name = "dep" analyzer-version = 1 - inputs-digest = "f0136e5899d85670e4bb91c85db638b8d50d74cac1d00e96c714c7ec61513d5f" + inputs-digest = "992f6e13bd909fa436a615718637dac016f185163cb35a6611b9c842c23ba756" solver-name = "gps-cdcl" solver-version = 1 diff --git a/cmd/paste/config.go b/cmd/paste/config.go index f5d4ecc..658f716 100644 --- a/cmd/paste/config.go +++ b/cmd/paste/config.go @@ -8,6 +8,7 @@ import ( "github.com/spf13/viper" "sour.is/x/toolbox/httpsrv" "sour.is/x/toolbox/log" + _ "sour.is/x/toolbox/stats" ) var ( diff --git a/debian/Makefile b/debian/Makefile index 49d1c71..47f5c7b 100644 --- a/debian/Makefile +++ b/debian/Makefile @@ -29,7 +29,7 @@ build: export BUILD="BUILD/$(NAME)_$${VERSION}-$${RELEASE}"; \ env GOOS=linux GOARCH=amd64 go build -v -o $${BUILD}/opt/sour.is/bin/paste \ -ldflags "-X main.AppVersion=$${VERSION}-$${RELEASE} -X main.AppBuild=$${DATE}"\ - sour.is/x/paste; \ + sour.is/x/paste/cmd/paste; \ dpkg -b $${BUILD}; \ copy: diff --git a/debian/RELEASE b/debian/RELEASE index 7ed6ff8..7f8f011 100644 --- a/debian/RELEASE +++ b/debian/RELEASE @@ -1 +1 @@ -5 +7