Skip to content

Commit

Permalink
switch from dep to go mod
Browse files Browse the repository at this point in the history
  • Loading branch information
displague committed Dec 18, 2018
1 parent fcb5a5c commit e23396e
Show file tree
Hide file tree
Showing 7 changed files with 103 additions and 267 deletions.
15 changes: 2 additions & 13 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,34 +2,23 @@ version: 2
jobs:
build:
docker:
- image: circleci/golang:1.10
- image: circleci/golang:1.11
working_directory: /go/src/github.com/linode/docker-machine-driver-linode
steps:
- checkout
- run:
name: Install tools
command: |
curl -L https://github.com/golang/dep/raw/master/install.sh | sh
- run:
name: Install dependencies
command: dep ensure
- run:
name: Build binary
command: make
release:
docker:
- image: circleci/golang:1.10
- image: circleci/golang:1.11
working_directory: /go/src/github.com/linode/docker-machine-driver-linode
steps:
- checkout
- run:
name: Install tools
command: |
curl -L https://github.com/golang/dep/raw/master/install.sh | sh
go get github.com/goreleaser/goreleaser
- run:
name: Install dependencies
command: dep ensure
- run:
name: Run goreleaser
command: goreleaser
Expand Down
1 change: 1 addition & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ builds:
-
env:
- CGO_ENABLED=0
- GO111MODULE=on
binary: docker-machine-driver-linode
goos:
- windows
Expand Down
208 changes: 0 additions & 208 deletions Gopkg.lock

This file was deleted.

42 changes: 0 additions & 42 deletions Gopkg.toml

This file was deleted.

12 changes: 8 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,24 @@ PROG := docker-machine-driver-linode
GOOS ?= $(shell go env GOOS)
GOARCH ?= $(shell go env GOARCH)

GO111MODULE=on

ifeq ($(GOOS),windows)
BIN_SUFFIX := ".exe"
endif

.PHONY: build
build:
build: dep
go build -o $(OUT_DIR)/$(PROG)$(BIN_SUFFIX) ./

.PHONY: dep
dep:
dep ensure
@GO111MODULE=on
go get -d ./
go mod verify

.PHONY: test
test:
test: dep
go test -race ./...

.PHONY: check
Expand All @@ -34,5 +38,5 @@ uninstall:
$(RM) $(GOPATH)/bin/$(PROG)$(BIN_SUFFIX)

.PHONY: install
install:
install: build
go install
26 changes: 26 additions & 0 deletions go.mod
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
module github.com/linode/docker-machine-driver-linode

require (
github.com/Azure/go-ansiterm v0.0.0-20170929234023-d6e3b3328b78 // indirect
github.com/davecgh/go-spew v1.1.0 // indirect
github.com/dnaeon/go-vcr v1.0.0 // indirect
github.com/docker/docker v0.0.0-20180808234805-4122eb1a43a4 // indirect
github.com/docker/machine v0.15.0
github.com/google/go-cmp v0.2.0 // indirect
github.com/linode/linodego v0.7.0
github.com/onsi/ginkgo v1.7.0 // indirect
github.com/onsi/gomega v1.4.3 // indirect
github.com/pkg/errors v0.8.0 // indirect
github.com/pmezard/go-difflib v1.0.0 // indirect
github.com/sirupsen/logrus v1.0.6 // indirect
github.com/stretchr/testify v1.2.2
golang.org/x/crypto v0.0.0-20180808211826-de0752318171 // indirect
golang.org/x/oauth2 v0.0.0-20180724155351-3d292e4d0cdc
golang.org/x/sync v0.0.0-20181108010431-42b317875d0f // indirect
google.golang.org/appengine v1.1.0 // indirect
gopkg.in/airbrake/gobrake.v2 v2.0.9 // indirect
gopkg.in/gemnasium/logrus-airbrake-hook.v2 v2.1.2 // indirect
gopkg.in/resty.v1 v1.10.3 // indirect
gopkg.in/yaml.v2 v2.2.2 // indirect
gotest.tools v2.2.0+incompatible // indirect
)
Loading

0 comments on commit e23396e

Please sign in to comment.