From e9eae1694bae3e4341bc4d3e88147efb7c9d2e59 Mon Sep 17 00:00:00 2001 From: yoyofx Date: Tue, 2 Aug 2022 15:59:51 +0800 Subject: [PATCH] Fixed vulnerability of CVE-*** --- cli/yygctl/go.mod | 9 +++++++-- examples/console/go.mod | 4 +++- examples/grafanaalertwebhook/go.mod | 4 +++- examples/grpc-demo/go.mod | 8 +++++--- examples/mvc/go.mod | 1 + examples/simpleweb/go.mod | 2 +- examples/standardwebapi/go.mod | 7 +++++-- examples/wetodohub/go.mod | 3 ++- examples/xxl-job-console/go.mod | 3 ++- go.mod | 2 +- 10 files changed, 30 insertions(+), 13 deletions(-) diff --git a/cli/yygctl/go.mod b/cli/yygctl/go.mod index edeaa50b..9a83c869 100644 --- a/cli/yygctl/go.mod +++ b/cli/yygctl/go.mod @@ -1,5 +1,10 @@ module yygctl -go 1.16 +go 1.18 -require github.com/spf13/cobra v1.2.0 +require github.com/spf13/cobra v1.5.0 + +require ( + github.com/inconshreveable/mousetrap v1.0.0 // indirect + github.com/spf13/pflag v1.0.5 // indirect +) diff --git a/examples/console/go.mod b/examples/console/go.mod index daef7f1c..9a9a214a 100644 --- a/examples/console/go.mod +++ b/examples/console/go.mod @@ -1,10 +1,12 @@ module console -go 1.16 +go 1.18 require ( github.com/yoyofx/yoyogo v0.0.0 github.com/yoyofxteam/dependencyinjection v1.0.1 + gopkg.in/yaml.v3 v3.0.1 // indirect + ) replace github.com/yoyofx/yoyogo => ../../ diff --git a/examples/grafanaalertwebhook/go.mod b/examples/grafanaalertwebhook/go.mod index ab074bb2..66a3408c 100644 --- a/examples/grafanaalertwebhook/go.mod +++ b/examples/grafanaalertwebhook/go.mod @@ -1,10 +1,12 @@ module grafanaalertwebhook -go 1.16 +go 1.18 require ( github.com/yoyofx/yoyogo v0.0.0 gopkg.in/go-playground/assert.v1 v1.2.1 + gopkg.in/yaml.v3 v3.0.1 // indirect + ) replace github.com/yoyofx/yoyogo => ../../ diff --git a/examples/grpc-demo/go.mod b/examples/grpc-demo/go.mod index d374075b..ea9b52e7 100644 --- a/examples/grpc-demo/go.mod +++ b/examples/grpc-demo/go.mod @@ -1,12 +1,14 @@ module grpc-demo -go 1.16 +go 1.18 require ( github.com/yoyofx/yoyogo v0.0.0 github.com/yoyofxteam/dependencyinjection v1.0.1 - google.golang.org/grpc v1.45.0 - google.golang.org/protobuf v1.26.0 + google.golang.org/grpc v1.46.2 + google.golang.org/protobuf v1.28.0 + gopkg.in/yaml.v3 v3.0.1 // indirect + ) replace github.com/yoyofx/yoyogo => ../../ diff --git a/examples/mvc/go.mod b/examples/mvc/go.mod index f7060974..1cb0b177 100644 --- a/examples/mvc/go.mod +++ b/examples/mvc/go.mod @@ -5,6 +5,7 @@ go 1.16 require ( github.com/yoyofx/yoyogo v0.0.0 github.com/yoyofxteam/dependencyinjection v1.0.1 + gopkg.in/yaml.v3 v3.0.1 // indirect ) replace github.com/yoyofx/yoyogo => ../../ diff --git a/examples/simpleweb/go.mod b/examples/simpleweb/go.mod index 2903eef3..0d571aa3 100644 --- a/examples/simpleweb/go.mod +++ b/examples/simpleweb/go.mod @@ -83,7 +83,7 @@ require ( google.golang.org/protobuf v1.28.0 // indirect gopkg.in/ini.v1 v1.66.4 // indirect gopkg.in/yaml.v2 v2.4.0 // indirect - gopkg.in/yaml.v3 v3.0.0 // indirect + gopkg.in/yaml.v3 v3.0.1 // indirect gorm.io/driver/mysql v1.1.1 // indirect skywalking.apache.org/repo/goapi v0.0.0-20210401062122-a049ca15c62d // indirect ) diff --git a/examples/standardwebapi/go.mod b/examples/standardwebapi/go.mod index 0ad774a3..b0a28da9 100644 --- a/examples/standardwebapi/go.mod +++ b/examples/standardwebapi/go.mod @@ -1,7 +1,10 @@ module standardwebapi -go 1.16 +go 1.18 -require github.com/yoyofx/yoyogo v0.0.0 +require ( + github.com/yoyofx/yoyogo v0.0.0 + gopkg.in/yaml.v3 v3.0.1 // indirect +) replace github.com/yoyofx/yoyogo => ../../ diff --git a/examples/wetodohub/go.mod b/examples/wetodohub/go.mod index 68783f97..ec3981d3 100644 --- a/examples/wetodohub/go.mod +++ b/examples/wetodohub/go.mod @@ -1,11 +1,12 @@ module websockethub -go 1.16 +go 1.18 require ( github.com/fasthttp/websocket v1.5.0 github.com/yoyofx/yoyogo v0.0.0 github.com/yoyofxteam/dependencyinjection v1.0.1 + gopkg.in/yaml.v3 v3.0.1 // indirect ) replace github.com/yoyofx/yoyogo => ../../ diff --git a/examples/xxl-job-console/go.mod b/examples/xxl-job-console/go.mod index 1f0f6775..91b29ce0 100644 --- a/examples/xxl-job-console/go.mod +++ b/examples/xxl-job-console/go.mod @@ -1,10 +1,11 @@ module xxl-job-console -go 1.16 +go 1.18 require ( github.com/yoyofx/yoyogo v0.0.0 github.com/yoyofxteam/dependencyinjection v1.0.1 + gopkg.in/yaml.v3 v3.0.1 // indirect ) replace github.com/yoyofx/yoyogo => ../../ diff --git a/go.mod b/go.mod index 3745b7ad..bcd9d081 100644 --- a/go.mod +++ b/go.mod @@ -128,6 +128,6 @@ require ( gopkg.in/gcfg.v1 v1.2.3 // indirect gopkg.in/ini.v1 v1.66.4 // indirect gopkg.in/warnings.v0 v0.1.2 // indirect - gopkg.in/yaml.v3 v3.0.0 // indirect + gopkg.in/yaml.v3 v3.0.1 // indirect skywalking.apache.org/repo/goapi v0.0.0-20210401062122-a049ca15c62d // indirect )