Skip to content

Commit 599bfa3

Browse files
authored
add package management (#30)
1 parent 6dcdb2a commit 599bfa3

File tree

4 files changed

+221
-2
lines changed

4 files changed

+221
-2
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@ splunk-logging-plugin
22
splunk-logging-plugin.tar.gz
33
.idea/
44
.DS_Store
5-
*.pyc
5+
*.pyc
6+
vendor/

Dockerfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,10 @@ WORKDIR /go/src/github.com/splunk/splunk-logging-plugin/
44

55
COPY . /go/src/github.com/splunk/splunk-logging-plugin/
66

7+
# install dep
8+
RUN curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh
79

8-
RUN cd /go/src/github.com/splunk/splunk-logging-plugin && go get
10+
RUN cd /go/src/github.com/splunk/splunk-logging-plugin && dep ensure
911

1012
RUN CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o /bin/splunk-logging-plugin .
1113

Gopkg.lock

Lines changed: 162 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Gopkg.toml

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
# Gopkg.toml example
2+
#
3+
# Refer to https://github.com/golang/dep/blob/master/docs/Gopkg.toml.md
4+
# for detailed Gopkg.toml documentation.
5+
#
6+
# required = ["github.com/user/thing/cmd/thing"]
7+
# ignored = ["github.com/user/project/pkgX", "bitbucket.org/user/project/pkgA/pkgY"]
8+
#
9+
# [[constraint]]
10+
# name = "github.com/user/project"
11+
# version = "1.0.0"
12+
#
13+
# [[constraint]]
14+
# name = "github.com/user/project2"
15+
# branch = "dev"
16+
# source = "github.com/myfork/project2"
17+
#
18+
# [[override]]
19+
# name = "github.com/x/y"
20+
# version = "2.4.0"
21+
#
22+
# [prune]
23+
# non-go = false
24+
# go-tests = true
25+
# unused-packages = true
26+
27+
28+
[[constraint]]
29+
name = "github.com/Sirupsen/logrus"
30+
version = "1.0.5"
31+
32+
[[constraint]]
33+
name = "github.com/docker/docker"
34+
version = "17.3.0-ce"
35+
36+
[[constraint]]
37+
branch = "master"
38+
name = "github.com/docker/go-plugins-helpers"
39+
40+
[[constraint]]
41+
name = "github.com/gogo/protobuf"
42+
version = "1.0.0"
43+
44+
[[constraint]]
45+
name = "github.com/pkg/errors"
46+
version = "0.8.0"
47+
48+
[[constraint]]
49+
branch = "master"
50+
name = "github.com/tonistiigi/fifo"
51+
52+
[prune]
53+
go-tests = true
54+
unused-packages = true

0 commit comments

Comments
 (0)