From ce1142f3a0f40d4643cda82e293e0c19896ea7b8 Mon Sep 17 00:00:00 2001 From: Moshe Levi Date: Sat, 28 Mar 2020 20:23:55 +0300 Subject: [PATCH] use go mod --- .travis.yml | 9 +-------- go.mod | 11 +++++++++++ go.sum | 25 +++++++++++++++++++++++++ 3 files changed, 37 insertions(+), 8 deletions(-) create mode 100644 go.mod create mode 100644 go.sum diff --git a/.travis.yml b/.travis.yml index 7fee272..ba93233 100644 --- a/.travis.yml +++ b/.travis.yml @@ -5,13 +5,7 @@ language: go dist: xenial go: - - 1.11.x - - -install: - - go get github.com/vishvananda/netlink - - go get github.com/satori/go.uuid - - go get github.com/spf13/afero + - 1.13.x # Anything in before_script that returns a nonzero exit code will flunk the # build and immediately stop. It's sorta like having set -e enabled in bash. @@ -19,7 +13,6 @@ install: before_script: - go get -u github.com/golangci/golangci-lint/cmd/golangci-lint - go get github.com/mattn/goveralls - - go get github.com/stretchr/testify/assert script: - golangci-lint run # run a bunch of code checkers/linters in parallel diff --git a/go.mod b/go.mod new file mode 100644 index 0000000..cf892aa --- /dev/null +++ b/go.mod @@ -0,0 +1,11 @@ +module github/Mellanox/sriovnet + +go 1.13 + +require ( + github.com/Mellanox/sriovnet v0.0.0-20191103093832-a16b5a5bd280 + github.com/google/uuid v1.1.1 + github.com/spf13/afero v1.2.2 + github.com/stretchr/testify v1.5.1 + github.com/vishvananda/netlink v1.1.0 +) diff --git a/go.sum b/go.sum new file mode 100644 index 0000000..184b621 --- /dev/null +++ b/go.sum @@ -0,0 +1,25 @@ +github.com/Mellanox/sriovnet v0.0.0-20191103093832-a16b5a5bd280 h1:PG0aplv4gs0NdGrvPa2IXKkfVW7tABREfehXMhdvzN0= +github.com/Mellanox/sriovnet v0.0.0-20191103093832-a16b5a5bd280/go.mod h1:P1tDPkhPZuCRhSaQ2dt1qNwPq7u80nerosqr0hTJ+hc= +github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= +github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= +github.com/google/uuid v1.1.1 h1:Gkbcsh/GbpXz7lPftLA3P6TYMwjCLYm83jiFQZF/3gY= +github.com/google/uuid v1.1.1/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= +github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= +github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= +github.com/spf13/afero v1.2.2 h1:5jhuqJyZCZf2JRofRvN/nIFgIWNzPa3/Vz8mYylgbWc= +github.com/spf13/afero v1.2.2/go.mod h1:9ZxEEn6pIJ8Rxe320qSDBk6AsU0r9pR7Q4OcevTdifk= +github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= +github.com/stretchr/testify v1.5.1 h1:nOGnQDM7FYENwehXlg/kFVnos3rEvtKTjRvOWSzb6H4= +github.com/stretchr/testify v1.5.1/go.mod h1:5W2xD1RspED5o8YsWQXVCued0rvSQ+mT+I5cxcmMvtA= +github.com/vishvananda/netlink v1.1.0 h1:1iyaYNBLmP6L0220aDnYQpo1QEV4t4hJ+xEEhhJH8j0= +github.com/vishvananda/netlink v1.1.0/go.mod h1:cTgwzPIzzgDAYoQrMm0EdrjRUBkTqKYppBueQtXaqoE= +github.com/vishvananda/netns v0.0.0-20191106174202-0a2b9b5464df h1:OviZH7qLw/7ZovXvuNyL3XQl8UFofeikI1NW1Gypu7k= +github.com/vishvananda/netns v0.0.0-20191106174202-0a2b9b5464df/go.mod h1:JP3t17pCcGlemwknint6hfoeCVQrEMVwxRLRjXpq+BU= +golang.org/x/sys v0.0.0-20190606203320-7fc4e5ec1444 h1:/d2cWp6PSamH4jDPFLyO150psQdqvtoNX8Zjg3AQ31g= +golang.org/x/sys v0.0.0-20190606203320-7fc4e5ec1444/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/text v0.3.0 h1:g61tztE5qeGQ89tm6NTjjM9VPIm088od1l6aSorWRWg= +golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= +gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM= +gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= +gopkg.in/yaml.v2 v2.2.2 h1:ZCJp+EgiOT7lHqUV2J862kp8Qj64Jo6az82+3Td9dZw= +gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=