Skip to content

Commit 9cd019e

Browse files
authored
Merge pull request #165 from abicky/go-mod-tidy-and-go-fmt
Run "go mod tidy" and "go fmt"
2 parents 4921b58 + f38f5ef commit 9cd019e

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

.github/workflows/test.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,11 @@ jobs:
1919
with:
2020
go-version: 1.21
2121
id: go
22+
- name: Verify Go code style and module consistency
23+
run: |
24+
go mod tidy
25+
go fmt ./...
26+
git diff --exit-code
2227
- name: Run Unit test
2328
run: make test
2429
- name: Build

cmd/config.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
package cmd
22

33
import (
4+
"encoding/json"
45
"fmt"
56
"os"
6-
"encoding/json"
77

88
"github.com/hyperledger-labs/yui-relayer/config"
99
"github.com/spf13/cobra"

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ require (
2323
github.com/spf13/pflag v1.0.5
2424
github.com/spf13/viper v1.18.2
2525
go.opentelemetry.io/contrib/bridges/otelslog v0.10.0
26+
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.47.0
2627
go.opentelemetry.io/otel v1.35.0
2728
go.opentelemetry.io/otel/exporters/otlp/otlplog/otlploggrpc v0.11.0
2829
go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetricgrpc v1.35.0
@@ -188,7 +189,6 @@ require (
188189
go.opencensus.io v0.24.0 // indirect
189190
go.opentelemetry.io/auto/sdk v1.1.0 // indirect
190191
go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.47.0 // indirect
191-
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.47.0 // indirect
192192
go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.35.0 // indirect
193193
go.opentelemetry.io/proto/otlp v1.5.0 // indirect
194194
go.uber.org/multierr v1.10.0 // indirect

0 commit comments

Comments
 (0)