diff --git a/.travis.yml b/.travis.yml index bd0f60a..3f9a77e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,9 +1,8 @@ language: go -go: - - "1.10.x" - - "1.11.x" +go: + - "1.13.x" install: - - go get -u github.com/golang/dep/cmd/dep + - go mod download script: - make - make test diff --git a/Gopkg.lock b/Gopkg.lock deleted file mode 100644 index f3e3bb5..0000000 --- a/Gopkg.lock +++ /dev/null @@ -1,36 +0,0 @@ -# This file is autogenerated, do not edit; changes may be undone by the next 'dep ensure'. - - -[[projects]] - name = "github.com/davecgh/go-spew" - packages = ["spew"] - revision = "8991bc29aa16c548c550c7ff78260e27b9ab7c73" - version = "v1.1.1" - -[[projects]] - name = "github.com/pmezard/go-difflib" - packages = ["difflib"] - revision = "792786c7400a136282c1664665ae0a8db921c6c2" - version = "v1.0.0" - -[[projects]] - name = "github.com/stretchr/testify" - packages = ["assert"] - revision = "f35b8ab0b5a2cef36673838d662e249dd9c94686" - version = "v1.2.2" - -[[projects]] - branch = "master" - name = "golang.org/x/crypto" - packages = [ - "acme", - "acme/autocert" - ] - revision = "7c1a557ab941a71c619514f229f0b27ccb0c27cf" - -[solve-meta] - analyzer-name = "dep" - analyzer-version = 1 - inputs-digest = "1ef577e0bdad79608ea08c4111ec53f39f4fb88e84f030f1f3a6b20d961240a7" - solver-name = "gps-cdcl" - solver-version = 1 diff --git a/Gopkg.toml b/Gopkg.toml deleted file mode 100644 index 47863a9..0000000 --- a/Gopkg.toml +++ /dev/null @@ -1,34 +0,0 @@ -# Gopkg.toml example -# -# Refer to https://github.com/golang/dep/blob/master/docs/Gopkg.toml.md -# for detailed Gopkg.toml documentation. -# -# required = ["github.com/user/thing/cmd/thing"] -# ignored = ["github.com/user/project/pkgX", "bitbucket.org/user/project/pkgA/pkgY"] -# -# [[constraint]] -# name = "github.com/user/project" -# version = "1.0.0" -# -# [[constraint]] -# name = "github.com/user/project2" -# branch = "dev" -# source = "github.com/myfork/project2" -# -# [[override]] -# name = "github.com/x/y" -# version = "2.4.0" -# -# [prune] -# non-go = false -# go-tests = true -# unused-packages = true - - -[[constraint]] - branch = "master" - name = "golang.org/x/crypto" - -[prune] - go-tests = true - unused-packages = true diff --git a/Makefile b/Makefile index d8b6487..e7e85cf 100644 --- a/Makefile +++ b/Makefile @@ -2,7 +2,7 @@ BINARY = ssl-proxy .PHONY: build build: - dep ensure + go mod download go build -o ${BINARY} .PHONY: test @@ -16,7 +16,7 @@ run: .PHONY: release release: - dep ensure + go mod download GOOS=linux GOARCH=amd64 go build -o build/${BINARY}-linux-amd64 .; GOOS=darwin GOARCH=amd64 go build -o build/${BINARY}-darwin-amd64 .; GOOS=windows GOARCH=amd64 go build -o build/${BINARY}-windows-amd64.exe .; diff --git a/go.mod b/go.mod new file mode 100644 index 0000000..82f5e93 --- /dev/null +++ b/go.mod @@ -0,0 +1,12 @@ +module github.com/suyashkumar/ssl-proxy + +go 1.13 + +require ( + github.com/davecgh/go-spew v1.1.1 + github.com/pmezard/go-difflib v1.0.0 + github.com/stretchr/testify v1.2.2 + golang.org/x/crypto v0.0.0-20191206172530-e9b2fee46413 + golang.org/x/net v0.0.0-20191209160850-c0dbc17a3553 + golang.org/x/text v0.3.2 +)