Skip to content

Commit 4693288

Browse files
author
ismael FALL
committed
fix: gci file
Signed-off-by: ismael FALL <ismael.fall@epitech.eu>
1 parent 5ed7ff3 commit 4693288

File tree

8 files changed

+14
-32
lines changed

8 files changed

+14
-32
lines changed

internal/dvcore/run_test.go

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,12 @@ import (
55
"os"
66
"testing"
77

8-
"moul.io/depviz/v3/internal/dvstore"
9-
"moul.io/depviz/v3/internal/testutil"
10-
"moul.io/multipmuri"
11-
128
"github.com/cayleygraph/cayley/graph"
139
"github.com/cayleygraph/quad"
1410
"github.com/stretchr/testify/assert"
11+
"moul.io/depviz/v3/internal/dvstore"
12+
"moul.io/depviz/v3/internal/testutil"
13+
"moul.io/multipmuri"
1514
)
1615

1716
func TestPullAndSave(t *testing.T) {

internal/dvmodel/dvmodel.pb.go

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

internal/dvserver/server.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ import (
2525
chilogger "github.com/treastech/logger"
2626
"go.uber.org/zap"
2727
"google.golang.org/grpc"
28+
"google.golang.org/grpc/credentials/insecure"
2829
"moul.io/depviz/v3/internal/dvcore"
2930
"moul.io/depviz/v3/pkg/chiutil"
3031
"moul.io/multipmuri"
@@ -184,7 +185,7 @@ func New(ctx context.Context, h *cayley.Handle, schema *schema.Config, opts Opts
184185
}
185186
}),
186187
)
187-
grpcOpts := []grpc.DialOption{grpc.WithInsecure()}
188+
grpcOpts := []grpc.DialOption{grpc.WithTransportCredentials(insecure.NewCredentials())}
188189
if err := RegisterDepvizServiceHandlerFromEndpoint(ctx, gwmux, svc.grpcListenerAddr, grpcOpts); err != nil {
189190
return nil, fmt.Errorf("register service on gateway: %w", err)
190191
}

internal/dvstore/query.go

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,13 @@ import (
66
"sort"
77
"time"
88

9-
"go.uber.org/zap"
10-
"moul.io/depviz/v3/internal/dvmodel"
11-
"moul.io/multipmuri"
12-
139
"github.com/cayleygraph/cayley"
1410
"github.com/cayleygraph/cayley/graph/path"
1511
"github.com/cayleygraph/cayley/schema"
1612
"github.com/cayleygraph/quad"
13+
"go.uber.org/zap"
14+
"moul.io/depviz/v3/internal/dvmodel"
15+
"moul.io/multipmuri"
1716
)
1817

1918
func LastUpdatedIssueInRepo(ctx context.Context, h *cayley.Handle, entity multipmuri.Entity) (time.Time, error) { // nolint:interfacer

internal/dvstore/query_test.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,12 @@ import (
66
"strings"
77
"testing"
88

9+
_ "github.com/cayleygraph/quad/json"
10+
"github.com/stretchr/testify/assert"
911
"moul.io/depviz/v3/internal/dvparser"
1012
"moul.io/depviz/v3/internal/testutil"
1113
"moul.io/godev"
1214
"moul.io/multipmuri"
13-
14-
_ "github.com/cayleygraph/quad/json"
15-
"github.com/stretchr/testify/assert"
1615
)
1716

1817
func TestLoadTasks(t *testing.T) {

internal/dvstore/testing.go

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,26 +8,19 @@ import (
88

99
"github.com/cayleygraph/cayley"
1010
"github.com/cayleygraph/cayley/graph"
11-
1211
// required by cayley
1312
_ "github.com/cayleygraph/cayley/graph/kv/bolt"
1413
"github.com/cayleygraph/quad"
15-
1614
// required by cayley
1715
_ "github.com/cayleygraph/quad/gml"
18-
1916
// required by cayley
2017
_ "github.com/cayleygraph/quad/graphml"
21-
2218
// required by cayley
2319
_ "github.com/cayleygraph/quad/json"
24-
2520
// required by cayley
2621
_ "github.com/cayleygraph/quad/jsonld"
27-
2822
// required by cayley
2923
_ "github.com/cayleygraph/quad/nquads"
30-
3124
// required by cayley
3225
_ "github.com/cayleygraph/quad/pquads"
3326
"github.com/stretchr/testify/assert"

internal/gomodhack/hack.go

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,28 +6,20 @@
66
package gomodhack
77

88
import (
9-
9+
// required by packr.
10+
_ "github.com/gobuffalo/packr/v2/packr2"
1011
// required by protoc.
1112
_ "github.com/gogo/protobuf/gogoproto"
12-
1313
// required by protoc.
1414
_ "github.com/gogo/protobuf/types"
15-
1615
// nolint:staticcheck
1716
_ "github.com/golang/protobuf/proto"
18-
1917
// required by protoc.
2018
_ "github.com/golang/protobuf/ptypes/timestamp"
21-
2219
// required by protoc.
2320
_ "github.com/grpc-ecosystem/grpc-gateway/protoc-gen-swagger/options"
24-
2521
// required by depaware.
2622
_ "github.com/tailscale/depaware/depaware"
27-
2823
// required by goimports.
2924
_ "golang.org/x/tools/cover"
30-
31-
// required by packr.
32-
_ "github.com/gobuffalo/packr/v2/packr2"
3325
)

tool/internal/tools/tools.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,8 @@
44
package tools
55

66
import (
7-
87
// required by depaware
98
_ "github.com/tailscale/depaware/depaware"
10-
119
// required by goimports
1210
_ "golang.org/x/tools/cover"
1311
)

0 commit comments

Comments
 (0)