Add dep and build goal

This commit is contained in:
Maxim Baz 2018-07-29 23:21:55 +02:00
parent 2b72ea66e8
commit cd7019bf95
No known key found for this signature in database
GPG Key ID: 011FDC52DA839335
4 changed files with 71 additions and 1 deletions

2
.gitignore vendored
View File

@ -1,2 +1,4 @@
/data/
/vendor/
/custom.html
/ipd

36
Gopkg.lock generated Normal file
View File

@ -0,0 +1,36 @@
# This file is autogenerated, do not edit; changes may be undone by the next 'dep ensure'.
[[projects]]
name = "github.com/jessevdk/go-flags"
packages = ["."]
revision = "c6ca198ec95c841fdb89fc0de7496fed11ab854e"
version = "v1.4.0"
[[projects]]
name = "github.com/oschwald/geoip2-golang"
packages = ["."]
revision = "7118115686e16b77967cdbf55d1b944fe14ad312"
version = "v1.2.1"
[[projects]]
name = "github.com/oschwald/maxminddb-golang"
packages = ["."]
revision = "c5bec84d1963260297932a1b7a1753c8420717a7"
version = "v1.3.0"
[[projects]]
branch = "master"
name = "golang.org/x/sys"
packages = [
"unix",
"windows"
]
revision = "bd9dbc187b6e1dacfdd2722a87e83093c2d7bd6e"
[solve-meta]
analyzer-name = "dep"
analyzer-version = 1
inputs-digest = "46dc1fc78798279ebb1f329ae1d3970b526cd88e93bcf9f917d80015b6f0dace"
solver-name = "gps-cdcl"
solver-version = 1

29
Gopkg.toml Normal file
View File

@ -0,0 +1,29 @@
# Gopkg.toml example
#
# Refer to https://github.com/golang/dep/blob/master/docs/Gopkg.toml.md
# for detailed Gopkg.toml documentation.
#
# required = ["github.com/user/thing/cmd/thing"]
# ignored = ["github.com/user/project/pkgX", "bitbucket.org/user/project/pkgA/pkgY"]
#
# [[constraint]]
# name = "github.com/user/project"
# version = "1.0.0"
#
# [[constraint]]
# name = "github.com/user/project2"
# branch = "dev"
# source = "github.com/myfork/project2"
#
# [[override]]
# name = "github.com/x/y"
# version = "2.4.0"
[[constraint]]
name = "github.com/jessevdk/go-flags"
version = "1.4.0"
[[constraint]]
name = "github.com/oschwald/geoip2-golang"
version = "1.2.1"

View File

@ -14,6 +14,9 @@ test:
vet:
go vet ./...
build:
go build -o ipd cmd/ipd/main.go
megacheck:
ifdef TRAVIS
megacheck 2> /dev/null; if [ $$? -eq 127 ]; then \
@ -28,7 +31,7 @@ check-fmt:
lint: check-fmt vet megacheck
deps:
go get -d -v ./...
dep ensure
install:
go install ./...