Skip to content

Commit e1195e5

Browse files
authored
Merge pull request #27 from moshe010/go_mod
use go mod
2 parents b5821d0 + ce1142f commit e1195e5

File tree

4 files changed

+39
-10
lines changed

4 files changed

+39
-10
lines changed

.travis.yml

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,21 +5,14 @@ language: go
55
dist: xenial
66

77
go:
8-
- 1.11.x
9-
10-
11-
install:
12-
- go get github.com/vishvananda/netlink
13-
- go get github.com/satori/go.uuid
14-
- go get github.com/spf13/afero
8+
- 1.13.x
159

1610
# Anything in before_script that returns a nonzero exit code will flunk the
1711
# build and immediately stop. It's sorta like having set -e enabled in bash.
1812
# Make sure golangci-lint is vendored.
1913
before_script:
2014
- go get -u github.com/golangci/golangci-lint/cmd/golangci-lint
2115
- go get github.com/mattn/goveralls
22-
- go get github.com/stretchr/testify/assert
2316

2417
script:
2518
- golangci-lint run # run a bunch of code checkers/linters in parallel

go.mod

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
module github/Mellanox/sriovnet
2+
3+
go 1.13
4+
5+
require (
6+
github.com/Mellanox/sriovnet v0.0.0-20191103093832-a16b5a5bd280
7+
github.com/google/uuid v1.1.1
8+
github.com/spf13/afero v1.2.2
9+
github.com/stretchr/testify v1.5.1
10+
github.com/vishvananda/netlink v1.1.0
11+
)

go.sum

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
github.com/Mellanox/sriovnet v0.0.0-20191103093832-a16b5a5bd280 h1:PG0aplv4gs0NdGrvPa2IXKkfVW7tABREfehXMhdvzN0=
2+
github.com/Mellanox/sriovnet v0.0.0-20191103093832-a16b5a5bd280/go.mod h1:P1tDPkhPZuCRhSaQ2dt1qNwPq7u80nerosqr0hTJ+hc=
3+
github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8=
4+
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
5+
github.com/google/uuid v1.1.1 h1:Gkbcsh/GbpXz7lPftLA3P6TYMwjCLYm83jiFQZF/3gY=
6+
github.com/google/uuid v1.1.1/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo=
7+
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
8+
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
9+
github.com/spf13/afero v1.2.2 h1:5jhuqJyZCZf2JRofRvN/nIFgIWNzPa3/Vz8mYylgbWc=
10+
github.com/spf13/afero v1.2.2/go.mod h1:9ZxEEn6pIJ8Rxe320qSDBk6AsU0r9pR7Q4OcevTdifk=
11+
github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
12+
github.com/stretchr/testify v1.5.1 h1:nOGnQDM7FYENwehXlg/kFVnos3rEvtKTjRvOWSzb6H4=
13+
github.com/stretchr/testify v1.5.1/go.mod h1:5W2xD1RspED5o8YsWQXVCued0rvSQ+mT+I5cxcmMvtA=
14+
github.com/vishvananda/netlink v1.1.0 h1:1iyaYNBLmP6L0220aDnYQpo1QEV4t4hJ+xEEhhJH8j0=
15+
github.com/vishvananda/netlink v1.1.0/go.mod h1:cTgwzPIzzgDAYoQrMm0EdrjRUBkTqKYppBueQtXaqoE=
16+
github.com/vishvananda/netns v0.0.0-20191106174202-0a2b9b5464df h1:OviZH7qLw/7ZovXvuNyL3XQl8UFofeikI1NW1Gypu7k=
17+
github.com/vishvananda/netns v0.0.0-20191106174202-0a2b9b5464df/go.mod h1:JP3t17pCcGlemwknint6hfoeCVQrEMVwxRLRjXpq+BU=
18+
golang.org/x/sys v0.0.0-20190606203320-7fc4e5ec1444 h1:/d2cWp6PSamH4jDPFLyO150psQdqvtoNX8Zjg3AQ31g=
19+
golang.org/x/sys v0.0.0-20190606203320-7fc4e5ec1444/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
20+
golang.org/x/text v0.3.0 h1:g61tztE5qeGQ89tm6NTjjM9VPIm088od1l6aSorWRWg=
21+
golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
22+
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM=
23+
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
24+
gopkg.in/yaml.v2 v2.2.2 h1:ZCJp+EgiOT7lHqUV2J862kp8Qj64Jo6az82+3Td9dZw=
25+
gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=

sriovnet.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ package sriovnet
22

33
import (
44
"fmt"
5-
"github.com/satori/go.uuid"
5+
"github.com/google/uuid"
66
"github.com/vishvananda/netlink"
77
"log"
88
"net"
@@ -223,7 +223,7 @@ func setVfPortGuid(handle *PfNetdevHandle, vf *VfObj, guid []byte) error {
223223

224224
func SetVfDefaultGUID(handle *PfNetdevHandle, vf *VfObj) error {
225225

226-
uuid, err := uuid.NewV4()
226+
uuid, err := uuid.NewRandom()
227227
if err != nil {
228228
return err
229229
}

0 commit comments

Comments
 (0)