From 04a016bc13b9c122338b4df252e6de3684e610a7 Mon Sep 17 00:00:00 2001 From: Brandon Wagner Date: Sun, 1 Dec 2019 09:34:44 -0600 Subject: [PATCH] convert to use go mods for deps --- Gopkg.toml | 34 ---------------------------------- Makefile | 12 ++++++++++++ README.md | 4 ---- go.mod | 9 +++++++++ go.sum | 18 ++++++++++++++++++ 5 files changed, 39 insertions(+), 38 deletions(-) delete mode 100644 Gopkg.toml create mode 100644 Makefile create mode 100644 go.mod create mode 100644 go.sum diff --git a/Gopkg.toml b/Gopkg.toml deleted file mode 100644 index f0df04d..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" - - -[[constraint]] - branch = "master" - name = "github.com/mitchellh/mapstructure" - -[[constraint]] - branch = "master" - name = "github.com/pkg/errors" - -[[constraint]] - branch = "master" - name = "github.com/r3labs/sse" diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..10f5540 --- /dev/null +++ b/Makefile @@ -0,0 +1,12 @@ + +all: test build + +build: + go build -v ./... + +test: + go test -v ./... + +clean: + go clean + diff --git a/README.md b/README.md index 09cfd33..1e53b0e 100644 --- a/README.md +++ b/README.md @@ -37,12 +37,8 @@ Please read the [Issue Guidelines and Policies](https://github.com/jeffreydwalte ```bash # Install latest stable package $ go get github.com/jeffreydwalter/arlo-go - -# Note: This package uses the `go dep` package for dependency management. If you plan on contributing to this package, you will be required to use [dep](https://github.com/golang/dep). Setting it up is outside the scope of this README, but if you want to contribute and aren't familiar with `dep`, I'm happy to get you. ``` -After installing all of the required libraries, you can import and use this library like so: - ```golang package main diff --git a/go.mod b/go.mod new file mode 100644 index 0000000..59590de --- /dev/null +++ b/go.mod @@ -0,0 +1,9 @@ +module github.com/jeffreydwalter/arlo-go + +go 1.13 + +require ( + github.com/pkg/errors v0.8.1 + github.com/r3labs/sse v0.0.0-20191120111931-24eacf438413 + golang.org/x/net v0.0.0-20191126235420-ef20fe5d7933 +) diff --git a/go.sum b/go.sum new file mode 100644 index 0000000..92f762f --- /dev/null +++ b/go.sum @@ -0,0 +1,18 @@ +github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= +github.com/pkg/errors v0.8.1 h1:iURUrRGxPUNPdy5/HRSm+Yj6okJ6UtLINN0Q9M4+h3I= +github.com/pkg/errors v0.8.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= +github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= +github.com/r3labs/sse v0.0.0-20191120111931-24eacf438413 h1:bF3heZD0lrJF16uVKKJsorZjBS7ET5Y9QKYtgno7X4Q= +github.com/r3labs/sse v0.0.0-20191120111931-24eacf438413/go.mod h1:S8xSOnV3CgpNrWd0GQ/OoQfMtlg2uPRSuTzcSGrzwK8= +github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= +github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4= +golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= +golang.org/x/net v0.0.0-20191116160921-f9c825593386/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20191126235420-ef20fe5d7933 h1:e6HwijUxhDe+hPNjZQQn9bA5PW3vNmnN64U2ZW759Lk= +golang.org/x/net v0.0.0-20191126235420-ef20fe5d7933/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= +golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= +gopkg.in/cenkalti/backoff.v1 v1.1.0 h1:Arh75ttbsvlpVA7WtVpH4u9h6Zl46xuptxqLxPiSo4Y= +gopkg.in/cenkalti/backoff.v1 v1.1.0/go.mod h1:J6Vskwqd+OMVJl8C33mmtxTBs2gyzfv7UDAkHu8BrjI= +gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= +gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=