Skip to content

Commit 75d4a30

Browse files
authored
Update dependencies and replace uuid library (#100)
1 parent 8aa869b commit 75d4a30

File tree

1,782 files changed

+105096
-40560
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,782 files changed

+105096
-40560
lines changed

Gopkg.lock

Lines changed: 181 additions & 47 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Gopkg.toml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,10 +59,6 @@ required = ["github.com/valyala/fasthttp"]
5959
name = "github.com/rs/cors"
6060
version = "1.2.0"
6161

62-
[[constraint]]
63-
name = "github.com/satori/go.uuid"
64-
version = "1.2.0"
65-
6662
[[constraint]]
6763
name = "github.com/sirupsen/logrus"
6864
version = "1.0.4"

acmetxt.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
44
"encoding/json"
55
"net"
66

7-
"github.com/satori/go.uuid"
7+
"github.com/google/uuid"
88
log "github.com/sirupsen/logrus"
99
)
1010

@@ -76,8 +76,8 @@ func (a ACMETxt) allowedFromList(ips []string) bool {
7676
func newACMETxt() ACMETxt {
7777
var a = ACMETxt{}
7878
password := generatePassword(40)
79-
a.Username = uuid.NewV4()
79+
a.Username = uuid.New()
8080
a.Password = password
81-
a.Subdomain = uuid.NewV4().String()
81+
a.Subdomain = uuid.New().String()
8282
return a
8383
}

api_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ import (
99
"testing"
1010

1111
"github.com/gavv/httpexpect"
12+
"github.com/google/uuid"
1213
"github.com/julienschmidt/httprouter"
1314
"github.com/rs/cors"
14-
"github.com/satori/go.uuid"
1515
"gopkg.in/DATA-DOG/go-sqlmock.v1"
1616
)
1717

@@ -25,7 +25,7 @@ func noAuth(update httprouter.Handle) httprouter.Handle {
2525
dec := json.NewDecoder(r.Body)
2626
_ = dec.Decode(&postData)
2727
// Set user info to the decoded ACMETxt object
28-
postData.Username, _ = uuid.FromString(uname)
28+
postData.Username, _ = uuid.Parse(uname)
2929
postData.Password = passwd
3030
// Set the ACMETxt struct to context to pull in from update function
3131
ctx := r.Context()

db.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ import (
99
"strconv"
1010
"time"
1111

12+
"github.com/google/uuid"
1213
_ "github.com/lib/pq"
1314
_ "github.com/mattn/go-sqlite3"
14-
"github.com/satori/go.uuid"
1515
log "github.com/sirupsen/logrus"
1616
"golang.org/x/crypto/bcrypt"
1717
)

types.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,10 @@ package main
22

33
import (
44
"database/sql"
5-
"github.com/miekg/dns"
6-
"github.com/satori/go.uuid"
75
"sync"
6+
7+
"github.com/google/uuid"
8+
"github.com/miekg/dns"
89
)
910

1011
// Config is global configuration struct

validation.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@ package main
33
import (
44
"unicode/utf8"
55

6-
"github.com/satori/go.uuid"
6+
"github.com/google/uuid"
77
"golang.org/x/crypto/bcrypt"
88
)
99

1010
func getValidUsername(u string) (uuid.UUID, error) {
11-
uname, err := uuid.FromString(u)
11+
uname, err := uuid.Parse(u)
1212
if err != nil {
1313
return uuid.UUID{}, err
1414
}
@@ -25,7 +25,7 @@ func validKey(k string) bool {
2525
}
2626

2727
func validSubdomain(s string) bool {
28-
_, err := uuid.FromString(s)
28+
_, err := uuid.Parse(s)
2929
if err == nil {
3030
return true
3131
}

validation_test.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
package main
22

33
import (
4-
"github.com/satori/go.uuid"
54
"testing"
5+
6+
"github.com/google/uuid"
67
)
78

89
func TestGetValidUsername(t *testing.T) {
9-
v1, _ := uuid.FromString("a097455b-52cc-4569-90c8-7a4b97c6eba8")
10+
v1, _ := uuid.Parse("a097455b-52cc-4569-90c8-7a4b97c6eba8")
1011
for i, test := range []struct {
1112
uname string
1213
output uuid.UUID

vendor/github.com/gavv/httpexpect/.gometalinter

Lines changed: 1 addition & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/github.com/gavv/httpexpect/.travis.yml

Lines changed: 1 addition & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/github.com/gavv/httpexpect/value_test.go

Lines changed: 201 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/github.com/google/uuid/.travis.yml

Lines changed: 9 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/github.com/google/uuid/CONTRIBUTING.md

Lines changed: 10 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/github.com/google/uuid/CONTRIBUTORS

Lines changed: 9 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)