Skip to content

Commit

Permalink
fix: gci file
Browse files Browse the repository at this point in the history
Signed-off-by: ismael FALL <ismael.fall@epitech.eu>
  • Loading branch information
Doozers committed Mar 17, 2023
1 parent 5ed7ff3 commit 4693288
Show file tree
Hide file tree
Showing 8 changed files with 14 additions and 32 deletions.
7 changes: 3 additions & 4 deletions internal/dvcore/run_test.go
Expand Up @@ -5,13 +5,12 @@ import (
"os"
"testing"

"moul.io/depviz/v3/internal/dvstore"
"moul.io/depviz/v3/internal/testutil"
"moul.io/multipmuri"

"github.com/cayleygraph/cayley/graph"
"github.com/cayleygraph/quad"
"github.com/stretchr/testify/assert"
"moul.io/depviz/v3/internal/dvstore"
"moul.io/depviz/v3/internal/testutil"
"moul.io/multipmuri"
)

func TestPullAndSave(t *testing.T) {
Expand Down
3 changes: 2 additions & 1 deletion internal/dvmodel/dvmodel.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion internal/dvserver/server.go
Expand Up @@ -25,6 +25,7 @@ import (
chilogger "github.com/treastech/logger"
"go.uber.org/zap"
"google.golang.org/grpc"
"google.golang.org/grpc/credentials/insecure"
"moul.io/depviz/v3/internal/dvcore"
"moul.io/depviz/v3/pkg/chiutil"
"moul.io/multipmuri"
Expand Down Expand Up @@ -184,7 +185,7 @@ func New(ctx context.Context, h *cayley.Handle, schema *schema.Config, opts Opts
}
}),
)
grpcOpts := []grpc.DialOption{grpc.WithInsecure()}
grpcOpts := []grpc.DialOption{grpc.WithTransportCredentials(insecure.NewCredentials())}
if err := RegisterDepvizServiceHandlerFromEndpoint(ctx, gwmux, svc.grpcListenerAddr, grpcOpts); err != nil {
return nil, fmt.Errorf("register service on gateway: %w", err)
}
Expand Down
7 changes: 3 additions & 4 deletions internal/dvstore/query.go
Expand Up @@ -6,14 +6,13 @@ import (
"sort"
"time"

"go.uber.org/zap"
"moul.io/depviz/v3/internal/dvmodel"
"moul.io/multipmuri"

"github.com/cayleygraph/cayley"
"github.com/cayleygraph/cayley/graph/path"
"github.com/cayleygraph/cayley/schema"
"github.com/cayleygraph/quad"
"go.uber.org/zap"
"moul.io/depviz/v3/internal/dvmodel"
"moul.io/multipmuri"
)

func LastUpdatedIssueInRepo(ctx context.Context, h *cayley.Handle, entity multipmuri.Entity) (time.Time, error) { // nolint:interfacer
Expand Down
5 changes: 2 additions & 3 deletions internal/dvstore/query_test.go
Expand Up @@ -6,13 +6,12 @@ import (
"strings"
"testing"

_ "github.com/cayleygraph/quad/json"
"github.com/stretchr/testify/assert"
"moul.io/depviz/v3/internal/dvparser"
"moul.io/depviz/v3/internal/testutil"
"moul.io/godev"
"moul.io/multipmuri"

_ "github.com/cayleygraph/quad/json"
"github.com/stretchr/testify/assert"
)

func TestLoadTasks(t *testing.T) {
Expand Down
7 changes: 0 additions & 7 deletions internal/dvstore/testing.go
Expand Up @@ -8,26 +8,19 @@ import (

"github.com/cayleygraph/cayley"
"github.com/cayleygraph/cayley/graph"

// required by cayley
_ "github.com/cayleygraph/cayley/graph/kv/bolt"
"github.com/cayleygraph/quad"

// required by cayley
_ "github.com/cayleygraph/quad/gml"

// required by cayley
_ "github.com/cayleygraph/quad/graphml"

// required by cayley
_ "github.com/cayleygraph/quad/json"

// required by cayley
_ "github.com/cayleygraph/quad/jsonld"

// required by cayley
_ "github.com/cayleygraph/quad/nquads"

// required by cayley
_ "github.com/cayleygraph/quad/pquads"
"github.com/stretchr/testify/assert"
Expand Down
12 changes: 2 additions & 10 deletions internal/gomodhack/hack.go
Expand Up @@ -6,28 +6,20 @@
package gomodhack

import (

// required by packr.
_ "github.com/gobuffalo/packr/v2/packr2"
// required by protoc.
_ "github.com/gogo/protobuf/gogoproto"

// required by protoc.
_ "github.com/gogo/protobuf/types"

// nolint:staticcheck
_ "github.com/golang/protobuf/proto"

// required by protoc.
_ "github.com/golang/protobuf/ptypes/timestamp"

// required by protoc.
_ "github.com/grpc-ecosystem/grpc-gateway/protoc-gen-swagger/options"

// required by depaware.
_ "github.com/tailscale/depaware/depaware"

// required by goimports.
_ "golang.org/x/tools/cover"

// required by packr.
_ "github.com/gobuffalo/packr/v2/packr2"
)
2 changes: 0 additions & 2 deletions tool/internal/tools/tools.go
Expand Up @@ -4,10 +4,8 @@
package tools

import (

// required by depaware
_ "github.com/tailscale/depaware/depaware"

// required by goimports
_ "golang.org/x/tools/cover"
)

0 comments on commit 4693288

Please sign in to comment.