Skip to content

Commit c3f2e90

Browse files
committed
chore(controller-sdk-go): use go mod replace dep
1 parent 39a6c81 commit c3f2e90

5 files changed

Lines changed: 24 additions & 106 deletions

File tree

Gopkg.lock

Lines changed: 0 additions & 65 deletions
This file was deleted.

Gopkg.toml

Lines changed: 0 additions & 34 deletions
This file was deleted.

Makefile

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# the filepath to this repository, relative to $GOPATH/src
22
REPO_PATH = github.com/drycc/controller-sdk-go
33

4-
DEV_ENV_IMAGE := quay.io/drycc/go-dev:v0.22.0
4+
DEV_ENV_IMAGE := golang:1.14
55
DEV_ENV_WORK_DIR := /go/src/${REPO_PATH}
66

77
# Enable vendor/ directory support.
@@ -12,14 +12,10 @@ PKG_DIRS := ./...
1212
DEV_ENV_CMD := docker run --rm -v ${CURDIR}:${DEV_ENV_WORK_DIR} -w ${DEV_ENV_WORK_DIR} ${DEV_ENV_IMAGE}
1313

1414
bootstrap:
15-
${DEV_ENV_CMD} dep ensure
15+
${DEV_ENV_CMD} go mod vendor
1616

1717
build:
1818
${DEV_ENV_CMD} go build ${PKG_DIRS}
1919

20-
test-cover:
21-
${DEV_ENV_CMD} test-cover.sh
22-
test-style:
23-
${DEV_ENV_CMD} lint
24-
test: build test-style test-cover
20+
test: build
2521
${DEV_ENV_CMD} go test ${PKG_DIRS}

go.mod

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
module github.com/drycc/controller-sdk-go
2+
3+
go 1.13
4+
5+
require (
6+
github.com/PuerkitoBio/purell v1.1.0 // indirect
7+
github.com/PuerkitoBio/urlesc v0.0.0-20170810143723-de5bf2ad4578 // indirect
8+
github.com/goware/urlx v0.0.0-20171129014730-06d8eeb3ce17
9+
golang.org/x/net v0.0.0-20190125091013-d26f9f9a57f3 // indirect
10+
golang.org/x/text v0.3.0 // indirect
11+
)

go.sum

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
github.com/PuerkitoBio/purell v1.1.0 h1:rmGxhojJlM0tuKtfdvliR84CFHljx9ag64t2xmVkjK4=
2+
github.com/PuerkitoBio/purell v1.1.0/go.mod h1:c11w/QuzBsJSee3cPx9rAFu61PvFxuPbtSwDGJws/X0=
3+
github.com/PuerkitoBio/urlesc v0.0.0-20170810143723-de5bf2ad4578 h1:d+Bc7a5rLufV/sSk/8dngufqelfh6jnri85riMAaF/M=
4+
github.com/PuerkitoBio/urlesc v0.0.0-20170810143723-de5bf2ad4578/go.mod h1:uGdkoq3SwY9Y+13GIhn11/XLaGBb4BfwItxLd5jeuXE=
5+
github.com/goware/urlx v0.0.0-20171129014730-06d8eeb3ce17 h1:6Gt5nbCTJ4YjqdJstMOLpyquzZMYpd01YZ/Kvaw6iPs=
6+
github.com/goware/urlx v0.0.0-20171129014730-06d8eeb3ce17/go.mod h1:Zn362WbIrTvMfW1tj4MxrEct8vJtNlnljZPnRssPfDU=
7+
golang.org/x/net v0.0.0-20190125091013-d26f9f9a57f3 h1:ulvT7fqt0yHWzpJwI57MezWnYDVpCAYBVuYst/L+fAY=
8+
golang.org/x/net v0.0.0-20190125091013-d26f9f9a57f3/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
9+
golang.org/x/text v0.3.0 h1:g61tztE5qeGQ89tm6NTjjM9VPIm088od1l6aSorWRWg=
10+
golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=

0 commit comments

Comments
 (0)