Skip to content

Commit

Permalink
feat(graph): update generated code and dependencies
Browse files Browse the repository at this point in the history
- Update generated GraphQL code to support context passing in Dispatch calls.
- Upgrade various dependencies, including gqlgen, go, and others, to leverage new features and bug fixes.
- Refactor Dockerfile to use golang:1.20-alpine base image.
  • Loading branch information
ch3nnn committed Jul 21, 2024
1 parent 0ef7292 commit 0887753
Show file tree
Hide file tree
Showing 4 changed files with 75 additions and 77 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# FROM 基于 golang:1.18-alpine
FROM golang:1.18-alpine AS builder
# FROM 基于 golang:1.20-alpine
FROM golang:1.20-alpine AS builder

# ENV 设置环境变量
ENV GO111MODULE=on
Expand Down
33 changes: 18 additions & 15 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
module github.com/ch3nnn/webstack-go

go 1.18
go 1.20

require (
github.com/99designs/gqlgen v0.14.0
github.com/99designs/gqlgen v0.17.49
github.com/dave/dst v0.26.2
github.com/duke-git/lancet/v2 v2.3.1
github.com/fsnotify/fsnotify v1.5.1
github.com/gin-contrib/pprof v1.3.0
github.com/gin-gonic/gin v1.9.1
Expand All @@ -13,7 +14,7 @@ require (
github.com/go-playground/validator/v10 v10.14.0
github.com/go-redis/redis/v7 v7.4.1
github.com/gocolly/colly v1.2.0
github.com/gorilla/websocket v1.4.2
github.com/gorilla/websocket v1.5.0
github.com/jakecoffman/cron v0.0.0-20190106200828-7e2009c226a5
github.com/mat/besticon v0.0.0-20230308222644-ee1fe52e97c1
github.com/pkg/errors v0.9.1
Expand All @@ -25,7 +26,7 @@ require (
github.com/spf13/viper v1.9.0
github.com/swaggo/gin-swagger v1.3.3
github.com/swaggo/swag v1.7.4
github.com/vektah/gqlparser/v2 v2.5.15
github.com/vektah/gqlparser/v2 v2.5.16
go.uber.org/multierr v1.7.0
go.uber.org/zap v1.19.1
golang.org/x/time v0.0.0-20211116232009-f0f3c7e86c11
Expand All @@ -39,11 +40,11 @@ require (

require (
github.com/KyleBanks/depth v1.2.1 // indirect
github.com/PuerkitoBio/goquery v1.6.1 // indirect
github.com/PuerkitoBio/goquery v1.9.2 // indirect
github.com/PuerkitoBio/purell v1.1.1 // indirect
github.com/PuerkitoBio/urlesc v0.0.0-20170810143723-de5bf2ad4578 // indirect
github.com/agnivade/levenshtein v1.1.1 // indirect
github.com/andybalholm/cascadia v1.2.0 // indirect
github.com/andybalholm/cascadia v1.3.2 // indirect
github.com/antchfx/htmlquery v1.3.0 // indirect
github.com/antchfx/xmlquery v1.3.15 // indirect
github.com/antchfx/xpath v1.2.3 // indirect
Expand All @@ -63,7 +64,8 @@ require (
github.com/goccy/go-json v0.10.2 // indirect
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect
github.com/golang/protobuf v1.5.2 // indirect
github.com/hashicorp/golang-lru v0.5.1 // indirect
github.com/google/uuid v1.6.0 // indirect
github.com/hashicorp/golang-lru/v2 v2.0.7 // indirect
github.com/hashicorp/hcl v1.0.0 // indirect
github.com/jinzhu/inflection v1.0.0 // indirect
github.com/jinzhu/now v1.1.5 // indirect
Expand All @@ -75,9 +77,9 @@ require (
github.com/leodido/go-urn v1.2.4 // indirect
github.com/magiconair/properties v1.8.5 // indirect
github.com/mailru/easyjson v0.7.6 // indirect
github.com/mattn/go-isatty v0.0.19 // indirect
github.com/mattn/go-isatty v0.0.20 // indirect
github.com/matttproud/golang_protobuf_extensions v1.0.1 // indirect
github.com/mitchellh/mapstructure v1.4.2 // indirect
github.com/mitchellh/mapstructure v1.5.0 // indirect
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
github.com/modern-go/reflect2 v1.0.2 // indirect
github.com/pelletier/go-toml v1.9.4 // indirect
Expand All @@ -87,6 +89,7 @@ require (
github.com/prometheus/procfs v0.6.0 // indirect
github.com/rogpeppe/go-internal v1.8.0 // indirect
github.com/saintfish/chardet v0.0.0-20230101081208-5e3ef4b5456d // indirect
github.com/sosodev/duration v1.3.1 // indirect
github.com/spf13/afero v1.6.0 // indirect
github.com/spf13/jwalterweatherman v1.1.0 // indirect
github.com/spf13/pflag v1.0.5 // indirect
Expand All @@ -99,16 +102,16 @@ require (
github.com/yusufpapurcu/wmi v1.2.4 // indirect
go.uber.org/atomic v1.7.0 // indirect
golang.org/x/arch v0.3.0 // indirect
golang.org/x/crypto v0.23.0 // indirect
golang.org/x/crypto v0.24.0 // indirect
golang.org/x/image v0.18.0 // indirect
golang.org/x/mod v0.17.0 // indirect
golang.org/x/net v0.25.0 // indirect
golang.org/x/mod v0.18.0 // indirect
golang.org/x/net v0.26.0 // indirect
golang.org/x/sync v0.7.0 // indirect
golang.org/x/sys v0.20.0 // indirect
golang.org/x/sys v0.21.0 // indirect
golang.org/x/text v0.16.0 // indirect
golang.org/x/tools v0.21.1-0.20240508182429-e35e4ccd0d2d // indirect
golang.org/x/tools v0.22.0 // indirect
google.golang.org/appengine v1.6.7 // indirect
google.golang.org/protobuf v1.33.0 // indirect
google.golang.org/protobuf v1.34.1 // indirect
gopkg.in/alexcesaro/quotedprintable.v3 v3.0.0-20150716171945-2caba252f4dc // indirect
gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c // indirect
gopkg.in/ini.v1 v1.63.2 // indirect
Expand Down
Loading

0 comments on commit 0887753

Please sign in to comment.