Skip to content

Commit

Permalink
Update dependencies and change some APIs.
Browse files Browse the repository at this point in the history
  • Loading branch information
mraron committed Feb 10, 2024
1 parent e65c91b commit 1282eff
Show file tree
Hide file tree
Showing 74 changed files with 931 additions and 1,387 deletions.
2 changes: 1 addition & 1 deletion cmd/gotext-update-templates/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ import (
"os"
"path/filepath"
"reflect"
"slices"
"strings"
"text/template/parse"

"golang.org/x/exp/slices"
"golang.org/x/text/language"
"golang.org/x/text/message/pipeline"
)
Expand Down
2 changes: 1 addition & 1 deletion cmd/migrations.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ var MigrateCmd = &cobra.Command{

server := web.Server{Server: cfg}
server.ConnectToDB()
driver, err := postgres.WithInstance(server.DB.DB, &postgres.Config{})
driver, err := postgres.WithInstance(server.DB, &postgres.Config{})
if err != nil {
return err
}
Expand Down
65 changes: 32 additions & 33 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,87 +3,86 @@ module github.com/mraron/njudge
go 1.21

require (
cloud.google.com/go/compute v1.6.1 // indirect
cloud.google.com/go/compute v1.23.3 // indirect
github.com/DATA-DOG/go-sqlmock v1.5.0 // indirect
github.com/friendsofgo/errors v0.9.2
github.com/gofrs/uuid v4.2.0+incompatible // indirect
github.com/golang-jwt/jwt v3.2.2+incompatible
github.com/golang-migrate/migrate/v4 v4.15.1
github.com/gorilla/sessions v1.2.1
github.com/golang-migrate/migrate/v4 v4.17.0
github.com/gorilla/sessions v1.2.2
github.com/hashicorp/go-multierror v1.1.1 // indirect
github.com/jmoiron/sqlx v1.3.4
github.com/labstack/echo-contrib v0.12.0
github.com/labstack/echo/v4 v4.9.0
github.com/labstack/gommon v0.3.1 // indirect
github.com/lib/pq v1.10.6
github.com/markbates/goth v1.69.0
github.com/mattn/go-colorable v0.1.12 // indirect
github.com/labstack/echo-contrib v0.15.0
github.com/labstack/echo/v4 v4.11.4
github.com/labstack/gommon v0.4.2 // indirect
github.com/lib/pq v1.10.9
github.com/markbates/goth v1.78.0
github.com/mattn/go-colorable v0.1.13 // indirect
github.com/sendgrid/rest v2.6.8+incompatible // indirect
github.com/sendgrid/sendgrid-go v3.11.0+incompatible
github.com/shirou/gopsutil v3.21.11+incompatible
github.com/spf13/afero v1.9.2
github.com/spf13/afero v1.11.0
github.com/spf13/cobra v1.5.0
github.com/spf13/viper v1.12.0
github.com/volatiletech/null/v8 v8.1.2
github.com/volatiletech/randomize v0.0.1 // indirect
github.com/volatiletech/sqlboiler/v4 v4.15.0
github.com/volatiletech/strmangle v0.0.5
github.com/volatiletech/sqlboiler/v4 v4.16.1
github.com/volatiletech/strmangle v0.0.6
github.com/yusufpapurcu/wmi v1.2.2 // indirect
go.uber.org/multierr v1.8.0
go.uber.org/multierr v1.8.0 // indirect
golang.org/x/crypto v0.17.0
golang.org/x/oauth2 v0.0.0-20220411215720-9780585627b5 // indirect
golang.org/x/oauth2 v0.15.0 // indirect
gopkg.in/yaml.v2 v2.4.0 // indirect
)

require (
github.com/antonlindstrom/pgstore v0.0.0-20220421113606-e3a6e3fed12a
github.com/fsnotify/fsnotify v1.6.0
github.com/gomarkdown/markdown v0.0.0-20220905174103-7b278df48cfb
github.com/google/go-cmp v0.5.8
github.com/erni27/imcache v1.2.0
github.com/fsnotify/fsnotify v1.7.0
github.com/google/go-cmp v0.6.0
github.com/karrick/gobls v1.3.5
github.com/quasoft/memstore v0.0.0-20191010062613-2bce066d2b0b
github.com/stretchr/testify v1.8.0
github.com/stretchr/testify v1.8.4
github.com/yuin/goldmark v1.7.0
go.uber.org/zap v1.23.0
golang.org/x/exp v0.0.0-20220827204233-334a2380cb91
golang.org/x/text v0.14.0
gopkg.in/gomail.v2 v2.0.0-20160411212932-81ebce5c23df
gopkg.in/yaml.v3 v3.0.1
)

require (
cloud.google.com/go/compute/metadata v0.2.3 // indirect
github.com/davecgh/go-spew v1.1.1 // indirect
github.com/erni27/imcache v1.2.0 // indirect
github.com/go-ole/go-ole v1.2.6 // indirect
github.com/golang/protobuf v1.5.2 // indirect
github.com/golang/protobuf v1.5.3 // indirect
github.com/gorilla/context v1.1.1 // indirect
github.com/gorilla/mux v1.8.0 // indirect
github.com/gorilla/securecookie v1.1.1 // indirect
github.com/gorilla/securecookie v1.1.2 // indirect
github.com/hashicorp/errwrap v1.1.0 // indirect
github.com/hashicorp/hcl v1.0.0 // indirect
github.com/inconshreveable/mousetrap v1.0.1 // indirect
github.com/magiconair/properties v1.8.6 // indirect
github.com/mattn/go-isatty v0.0.16 // indirect
github.com/mattn/go-isatty v0.0.20 // indirect
github.com/mitchellh/mapstructure v1.5.0 // indirect
github.com/pelletier/go-toml v1.9.5 // indirect
github.com/pelletier/go-toml/v2 v2.0.5 // indirect
github.com/pmezard/go-difflib v1.0.0 // indirect
github.com/spf13/cast v1.5.0 // indirect
github.com/spf13/jwalterweatherman v1.1.0 // indirect
github.com/spf13/pflag v1.0.5 // indirect
github.com/stretchr/objx v0.4.0 // indirect
github.com/stretchr/objx v0.5.0 // indirect
github.com/subosito/gotenv v1.4.1 // indirect
github.com/valyala/bytebufferpool v1.0.0 // indirect
github.com/valyala/fasttemplate v1.2.1 // indirect
github.com/valyala/fasttemplate v1.2.2 // indirect
github.com/volatiletech/inflect v0.0.1 // indirect
go.uber.org/atomic v1.9.0 // indirect
golang.org/x/mod v0.8.0 // indirect
golang.org/x/net v0.17.0 // indirect
go.uber.org/atomic v1.10.0 // indirect
golang.org/x/mod v0.11.0 // indirect
golang.org/x/net v0.19.0 // indirect
golang.org/x/sys v0.15.0 // indirect
golang.org/x/time v0.0.0-20220224211638-0e9765cccd65 // indirect
golang.org/x/tools v0.6.0 // indirect
golang.org/x/xerrors v0.0.0-20220609144429-65e65417b02f // indirect
golang.org/x/time v0.5.0 // indirect
golang.org/x/tools v0.10.0 // indirect
golang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2 // indirect
google.golang.org/appengine v1.6.7 // indirect
google.golang.org/protobuf v1.28.0 // indirect
google.golang.org/protobuf v1.31.0 // indirect
gopkg.in/alexcesaro/quotedprintable.v3 v3.0.0-20150716171945-2caba252f4dc // indirect
gopkg.in/ini.v1 v1.67.0 // indirect
)
Loading

0 comments on commit 1282eff

Please sign in to comment.