Skip to content

Commit b8126b6

Browse files
committed
chore(deps): bump github.com/sentinel-official/sentinel-go-sdk to v1.0.0-rc.8
1 parent 8629f3f commit b8126b6

File tree

5 files changed

+75
-67
lines changed

5 files changed

+75
-67
lines changed

cmd/init.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ is set to overwrite the existing configuration.`,
5959
// Write default config only if file doesn't exist or force flag is set
6060
if !exists || force {
6161
log.Info("Writing app config", "file", cfgFile)
62+
6263
if err := cfg.WriteAppConfig(cfgFile); err != nil {
6364
return fmt.Errorf("writing config file %q: %w", cfgFile, err)
6465
}
@@ -78,6 +79,7 @@ is set to overwrite the existing configuration.`,
7879
}
7980

8081
log.Info("Issuing certificate and key", "name", "tls")
82+
8183
if _, _, err := pki.Issue("tls", opts...); err != nil {
8284
return fmt.Errorf("issuing TLS certificate and key: %w", err)
8385
}

cmd/root.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ tools for key management and node initialization, ensuring privacy, performance,
5757

5858
// Bind flags to Viper with normalized keys
5959
r := strings.NewReplacer("-", "_")
60+
6061
cmd.PersistentFlags().VisitAll(func(f *pflag.Flag) {
6162
_ = v.BindPFlag(r.Replace(f.Name), f)
6263
})
@@ -76,6 +77,7 @@ tools for key management and node initialization, ensuring privacy, performance,
7677
// If the config file exists, proceed to read its contents
7778
if exists {
7879
v.SetConfigFile(cfgFile)
80+
7981
if err := v.ReadInConfig(); err != nil {
8082
return fmt.Errorf("reading config file %q: %w", cfgFile, err)
8183
}
@@ -91,6 +93,7 @@ tools for key management and node initialization, ensuring privacy, performance,
9193
cfg.Keyring.Input = cmd.InOrStdin()
9294

9395
log.Info("Validating configuration")
96+
9497
if err := cfg.Validate(); err != nil {
9598
return fmt.Errorf("validating config: %w", err)
9699
}

cmd/start.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ explicitly starts the node, and handles SIGINT/SIGTERM for graceful shutdown.`,
4343
n := node.New("node")
4444

4545
log.Info("Setting up node")
46+
4647
if err := n.Setup(ctx, homeDir, cmd.InOrStdin(), cfg); err != nil {
4748
return fmt.Errorf("setting up node: %w", err)
4849
}
@@ -53,12 +54,14 @@ explicitly starts the node, and handles SIGINT/SIGTERM for graceful shutdown.`,
5354
// Goroutine to start and wait on the node
5455
eg.Go(func() error {
5556
log.Info("Starting node")
57+
5658
ctx, err := n.Start(ctx)
5759
if err != nil {
5860
return fmt.Errorf("starting node: %w", err)
5961
}
6062

6163
log.Info("Node started successfully")
64+
6265
if err := n.Wait(ctx); err != nil {
6366
return fmt.Errorf("waiting node: %w", err)
6467
}
@@ -71,6 +74,7 @@ explicitly starts the node, and handles SIGINT/SIGTERM for graceful shutdown.`,
7174
<-ctx.Done()
7275

7376
log.Info("Stopping node")
77+
7478
if err := n.Stop(); err != nil {
7579
return app.NewErrShutdown(fmt.Errorf("stopping node: %w", err))
7680
}

go.mod

Lines changed: 20 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ require (
77
github.com/cosmos/cosmos-sdk v0.47.17
88
github.com/gin-contrib/cors v1.7.6
99
github.com/gin-gonic/gin v1.11.0
10-
github.com/sentinel-official/sentinel-go-sdk v1.0.0-rc.7.0.20251008155434-ad8d4200c942
11-
github.com/sentinel-official/sentinelhub/v12 v12.0.0-rc.13.0.20251007075723-b5e9c41adcdd
10+
github.com/sentinel-official/sentinel-go-sdk v1.0.0-rc.8
11+
github.com/sentinel-official/sentinelhub/v12 v12.0.0
1212
github.com/spf13/cobra v1.10.1
1313
github.com/spf13/pflag v1.0.10
1414
github.com/spf13/viper v1.21.0
@@ -63,9 +63,9 @@ require (
6363
github.com/dgryski/go-metro v0.0.0-20211217172704-adc40b04c140 // indirect
6464
github.com/dustin/go-humanize v1.0.1 // indirect
6565
github.com/dvsekhvalnov/jose2go v1.6.0 // indirect
66-
github.com/ebitengine/purego v0.8.4 // indirect
66+
github.com/ebitengine/purego v0.9.0 // indirect
6767
github.com/fsnotify/fsnotify v1.9.0 // indirect
68-
github.com/gabriel-vasile/mimetype v1.4.9 // indirect
68+
github.com/gabriel-vasile/mimetype v1.4.10 // indirect
6969
github.com/getsentry/sentry-go v0.23.0 // indirect
7070
github.com/gin-contrib/sse v1.1.0 // indirect
7171
github.com/go-kit/kit v0.13.0 // indirect
@@ -74,7 +74,7 @@ require (
7474
github.com/go-ole/go-ole v1.2.6 // indirect
7575
github.com/go-playground/locales v0.14.1 // indirect
7676
github.com/go-playground/universal-translator v0.18.1 // indirect
77-
github.com/go-playground/validator/v10 v10.27.0 // indirect
77+
github.com/go-playground/validator/v10 v10.28.0 // indirect
7878
github.com/go-viper/mapstructure/v2 v2.4.0 // indirect
7979
github.com/goccy/go-json v0.10.5 // indirect
8080
github.com/goccy/go-yaml v1.18.0 // indirect
@@ -129,15 +129,15 @@ require (
129129
github.com/prometheus/common v0.66.1 // indirect
130130
github.com/prometheus/procfs v0.16.1 // indirect
131131
github.com/quic-go/qpack v0.5.1 // indirect
132-
github.com/quic-go/quic-go v0.54.1 // indirect
132+
github.com/quic-go/quic-go v0.55.0 // indirect
133133
github.com/rcrowley/go-metrics v0.0.0-20201227073835-cf1acfcdf475 // indirect
134134
github.com/riobard/go-bloom v0.0.0-20200614022211-cdc8013cb5b3 // indirect
135135
github.com/rogpeppe/go-internal v1.14.1 // indirect
136136
github.com/rs/zerolog v1.34.0 // indirect
137137
github.com/sagikazarmark/locafero v0.11.0 // indirect
138138
github.com/sasha-s/go-deadlock v0.3.5 // indirect
139139
github.com/seiflotfy/cuckoofilter v0.0.0-20220411075957-e3b120b3f5fb // indirect
140-
github.com/shirou/gopsutil/v4 v4.25.8 // indirect
140+
github.com/shirou/gopsutil/v4 v4.25.9 // indirect
141141
github.com/showwin/speedtest-go v1.7.10 // indirect
142142
github.com/soheilhy/cmux v0.1.5 // indirect
143143
github.com/sourcegraph/conc v0.3.1-0.20240121214520-5f936abd7ae8 // indirect
@@ -153,30 +153,29 @@ require (
153153
github.com/twitchyliquid64/golang-asm v0.15.1 // indirect
154154
github.com/ugorji/go/codec v1.3.0 // indirect
155155
github.com/v2fly/ss-bloomring v0.0.0-20210312155135-28617310f63e // indirect
156-
github.com/v2fly/v2ray-core/v5 v5.39.0 // indirect
156+
github.com/v2fly/v2ray-core/v5 v5.41.0 // indirect
157157
github.com/yusufpapurcu/wmi v1.2.4 // indirect
158158
github.com/zondax/hid v0.9.2 // indirect
159159
github.com/zondax/ledger-go v0.14.3 // indirect
160160
go.etcd.io/bbolt v1.4.0-alpha.0.0.20240404170359-43604f3112c5 // indirect
161161
go.opencensus.io v0.24.0 // indirect
162-
go.uber.org/mock v0.5.0 // indirect
163162
go.yaml.in/yaml/v2 v2.4.2 // indirect
164163
go.yaml.in/yaml/v3 v3.0.4 // indirect
165164
golang.org/x/arch v0.20.0 // indirect
166-
golang.org/x/crypto v0.42.0 // indirect
165+
golang.org/x/crypto v0.43.0 // indirect
167166
golang.org/x/exp v0.0.0-20241009180824-f66d83c29e7c // indirect
168-
golang.org/x/mod v0.27.0 // indirect
169-
golang.org/x/net v0.44.0 // indirect
170-
golang.org/x/sys v0.36.0 // indirect
171-
golang.org/x/term v0.35.0 // indirect
172-
golang.org/x/text v0.29.0 // indirect
173-
golang.org/x/time v0.13.0 // indirect
174-
golang.org/x/tools v0.36.0 // indirect
167+
golang.org/x/mod v0.28.0 // indirect
168+
golang.org/x/net v0.46.0 // indirect
169+
golang.org/x/sys v0.37.0 // indirect
170+
golang.org/x/term v0.36.0 // indirect
171+
golang.org/x/text v0.30.0 // indirect
172+
golang.org/x/time v0.14.0 // indirect
173+
golang.org/x/tools v0.37.0 // indirect
175174
google.golang.org/genproto v0.0.0-20241118233622-e639e219e697 // indirect
176-
google.golang.org/genproto/googleapis/api v0.0.0-20250707201910-8d1bb00bc6a7 // indirect
177-
google.golang.org/genproto/googleapis/rpc v0.0.0-20250707201910-8d1bb00bc6a7 // indirect
178-
google.golang.org/grpc v1.75.1 // indirect
179-
google.golang.org/protobuf v1.36.9 // indirect
175+
google.golang.org/genproto/googleapis/api v0.0.0-20250804133106-a7a43d27e69b // indirect
176+
google.golang.org/genproto/googleapis/rpc v0.0.0-20250804133106-a7a43d27e69b // indirect
177+
google.golang.org/grpc v1.76.0 // indirect
178+
google.golang.org/protobuf v1.36.10 // indirect
180179
gopkg.in/yaml.v3 v3.0.1 // indirect
181180
pgregory.net/rapid v1.1.0 // indirect
182181
sigs.k8s.io/yaml v1.4.0 // indirect

0 commit comments

Comments
 (0)