Skip to content

Commit

Permalink
Migrate from dep to go modules. (#437)
Browse files Browse the repository at this point in the history
* Migrate from dep to go modules.

* set env var
  • Loading branch information
stefan-improbable authored and aelsabbahy committed Jun 4, 2019
1 parent aa58d49 commit 6ba11dc
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 216 deletions.
2 changes: 0 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,8 @@ services:

before_install:
- go get -u golang.org/x/lint/golint
- DEP_RELEASE_TAG=0.5.0 curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh

script:
- make deps
- make

deploy:
Expand Down
152 changes: 0 additions & 152 deletions Gopkg.lock

This file was deleted.

57 changes: 0 additions & 57 deletions Gopkg.toml

This file was deleted.

7 changes: 2 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,9 @@ pkgs = $(shell ./novendor.sh)
cmd = goss
TRAVIS_TAG ?= "0.0.0"
GO_FILES = $(shell find . \( -path ./vendor -o -name '_test.go' \) -prune -o -name '*.go' -print)
GO111MODULE=on

.PHONY: all build install test coverage deps release bench test-int lint gen centos7 wheezy precise alpine3 arch test-int32 centos7-32 wheezy-32 precise-32 alpine3-32 arch-32
.PHONY: all build install test coverage release bench test-int lint gen centos7 wheezy precise alpine3 arch test-int32 centos7-32 wheezy-32 precise-32 alpine3-32 arch-32

all: test-all test-all-32

Expand Down Expand Up @@ -91,10 +92,6 @@ arch: build
test-all-32: lint test test-int-32
test-all: lint test test-int

deps:
$(info INFO: Starting build $@)
dep ensure

gen:
$(info INFO: Starting build $@)
go generate -tags genny $(pkgs)
Expand Down
20 changes: 20 additions & 0 deletions go.mod
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
module github.com/aelsabbahy/goss

require (
github.com/achanda/go-sysctl v0.0.0-20160222034550-6be7678c45d2
github.com/aelsabbahy/GOnetstat v0.0.0-20160428114218-edf89f784e08
github.com/aelsabbahy/go-ps v0.0.0-20170721000941-443386855ca1
github.com/cheekybits/genny v0.0.0-20160824153601-e8e29e67948b
github.com/docker/docker v0.0.0-20161109014415-383a2f046b16
github.com/fatih/color v0.0.0-20161025120501-bf82308e8c85
github.com/mattn/go-colorable v0.0.9
github.com/mattn/go-isatty v0.0.4
github.com/miekg/dns v0.0.0-20161018060808-58f52c57ce9d
github.com/oleiade/reflections v0.0.0-20160817071559-0e86b3c98b2f
github.com/onsi/gomega v0.0.0-20161031154339-ff4bc6b6f9f5
github.com/opencontainers/runc v0.0.0-20161107232042-8779fa57eb4a
github.com/patrickmn/go-cache v2.0.0+incompatible
github.com/urfave/cli v0.0.0-20161102131801-d86a009f5e13
golang.org/x/sys v0.0.0-20181210030007-2a47403f2ae5
gopkg.in/yaml.v2 v2.0.0-20160928153709-a5b47d31c556
)

0 comments on commit 6ba11dc

Please sign in to comment.