Skip to content

Commit eef79a2

Browse files
solidnerdmxschmitt
authored andcommitted
Add deps to repo (#15)
* Add deps to repo This will make an build a lot of more comfortable. For dependency management dep will be used. * Use locked dependencies on Travis * travis-ci: Changed way of installing Go Dep
1 parent f9b2cb2 commit eef79a2

File tree

4 files changed

+151
-1
lines changed

4 files changed

+151
-1
lines changed

.travis.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,16 @@ language: go
1616
go:
1717
- stable
1818

19+
env:
20+
- DEP_VERSION="0.4.1"
21+
22+
before_install:
23+
# Install Go Dep
24+
- curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh
25+
26+
install:
27+
- dep ensure
28+
1929
before_deploy:
2030
# Create binaries for many OSs and architures as tarballs.
2131
# the -osarch="!a/b !c/d" option is used to exclude OS-arch pairs

Gopkg.lock

Lines changed: 90 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: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
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/docker/machine"
30+
version = "0.15.0"
31+
32+
[[constraint]]
33+
name = "github.com/hetznercloud/hcloud-go"
34+
version = "1.7.0"
35+
36+
[[constraint]]
37+
name = "github.com/pkg/errors"
38+
version = "0.8.0"
39+
40+
[[constraint]]
41+
branch = "master"
42+
name = "golang.org/x/crypto"
43+
44+
[prune]
45+
go-tests = true
46+
unused-packages = true

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ was used during creation.
133133

134134
## Building from source
135135

136-
Use an up-to-date version of [Go](https://golang.org/dl)
136+
Use an up-to-date version of [Go](https://golang.org/dl) and [dep](https://github.com/golang/dep)
137137

138138
To use the driver, you can download the sources and build it locally:
139139

@@ -145,6 +145,10 @@ $ go get github.com/jonasprogrammer/docker-machine-driver-hetzner
145145
$ export GOPATH=$(go env GOPATH)
146146
$ export GOBIN=$GOPATH/bin
147147
$ export PATH="$PATH:$GOBIN"
148+
$ cd $GOPATH/src/jonasprogrammer/docker-machine-driver-hetzner
149+
$ dep ensure
150+
$ go build -o docker-machine-driver-hetzner
151+
$ cp docker-machine-driver-hetzner /usr/local/bin/docker-machine-driver-hetzner
148152
```
149153

150154
## Development

0 commit comments

Comments
 (0)