Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Avoid bit-rot, update old dependencies #17

Merged
merged 5 commits into from
May 19, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 14 additions & 10 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,19 @@ module github.com/nlnwa/gowarcserver
go 1.13

require (
github.com/dgraph-io/badger/v2 v2.2007.2
github.com/fsnotify/fsnotify v1.4.7
github.com/golang/protobuf v1.4.0-rc.4
github.com/gorilla/handlers v1.4.2
github.com/gorilla/mux v1.7.4
github.com/dgraph-io/badger/v3 v3.2011.1
github.com/fsnotify/fsnotify v1.4.9
github.com/golang/protobuf v1.5.1
github.com/gorilla/handlers v1.5.1
github.com/gorilla/mux v1.8.0
github.com/nlnwa/gowarc v0.0.0-20210118115420-3b141daed171
github.com/nlnwa/whatwg-url v0.0.0-20200306110950-d1a95e2e8fc3
github.com/sirupsen/logrus v1.4.2
github.com/spf13/cobra v0.0.5
github.com/spf13/viper v1.6.2
google.golang.org/protobuf v1.20.1
github.com/nlnwa/whatwg-url v0.1.0
github.com/sirupsen/logrus v1.8.1
github.com/spf13/cobra v1.1.3
github.com/spf13/viper v1.7.1
google.golang.org/protobuf v1.26.0
)

// HACK: as there are issues with sum value of v1.12.0, make sure to update this when badger updates its dependencies
// See issue: https://github.com/google/flatbuffers/issues/6466
replace github.com/google/flatbuffers v1.12.0 => github.com/google/flatbuffers v1.12.1
261 changes: 230 additions & 31 deletions go.sum

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion pkg/index/db.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import (
"sync"
"time"

"github.com/dgraph-io/badger/v2"
"github.com/dgraph-io/badger/v3"
"github.com/golang/protobuf/proto"
"github.com/golang/protobuf/ptypes"
gowarcpb "github.com/nlnwa/gowarc/proto"
Expand Down
2 changes: 1 addition & 1 deletion pkg/server/searchhandler.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import (
"fmt"
"net/http"

"github.com/dgraph-io/badger/v2"
"github.com/dgraph-io/badger/v3"
"github.com/golang/protobuf/jsonpb"
"github.com/golang/protobuf/proto"
cdx "github.com/nlnwa/gowarc/proto"
Expand Down
2 changes: 1 addition & 1 deletion pkg/server/warcserver/cdxserverapi.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
package warcserver

import (
"github.com/dgraph-io/badger/v2"
"github.com/dgraph-io/badger/v3"
"github.com/gorilla/mux"
cdx "github.com/nlnwa/gowarc/proto"
"github.com/nlnwa/whatwg-url/url"
Expand Down
2 changes: 1 addition & 1 deletion pkg/server/warcserver/indexhandler.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import (
"net/http"
"strings"

"github.com/dgraph-io/badger/v2"
"github.com/dgraph-io/badger/v3"
cdx "github.com/nlnwa/gowarc/proto"
"github.com/nlnwa/gowarcserver/pkg/index"
"github.com/nlnwa/gowarcserver/pkg/loader"
Expand Down
2 changes: 1 addition & 1 deletion pkg/server/warcserver/resourcehandler.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import (
"net/http"
"strings"

"github.com/dgraph-io/badger/v2"
"github.com/dgraph-io/badger/v3"
cdx "github.com/nlnwa/gowarc/proto"
"github.com/nlnwa/gowarc/warcoptions"
"github.com/nlnwa/gowarc/warcrecord"
Expand Down
2 changes: 1 addition & 1 deletion pkg/server/warcserver/sorter.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import (
"sort"
"strings"

"github.com/dgraph-io/badger/v2"
"github.com/dgraph-io/badger/v3"
"github.com/nlnwa/gowarc/pkg/timestamp"
"github.com/nlnwa/gowarc/pkg/utils"
)
Expand Down