Skip to content

Commit

Permalink
fix: v3 imports
Browse files Browse the repository at this point in the history
  • Loading branch information
moul committed Feb 19, 2020
1 parent 6aa6397 commit ab3deb6
Show file tree
Hide file tree
Showing 26 changed files with 42 additions and 38 deletions.
1 change: 1 addition & 0 deletions AUTHORS
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,6 @@
ahh <ahamidullah@gmail.com>
Alexandra Grasland <alexgrasland@gmail.com>
ImgBotApp <ImgBotHelp@gmail.com>
Lucas Germano <lucasgdev@gmail.com>
Manfred Touron <m@42.am>
Renovate Bot <bot@renovateapp.com>
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,10 @@ generate_local:
--gogofaster_out="plugins=grpc:$(GOPATH)/src" \
"$$proto" \
); done
@# CUSTOM CHANGE
@# due to go module versionning (currently) incompatible with automatic protobuf generated imports
sed -i s@moul.io/depviz/@moul.io/depviz/v3/@g internal/dvserver/dvserver.pb.go
@# END OF CUSTOM CHANGE
goimports -w ./pkg ./cmd ./internal
shasum $(GEN_DEPS) | sort > gen.sum.tmp
mv gen.sum.tmp gen.sum
Expand Down
2 changes: 1 addition & 1 deletion api/dvserver.proto
Original file line number Diff line number Diff line change
Expand Up @@ -52,4 +52,4 @@ message Status {
message Output {
bool everything_is_ok = 1 [(gogoproto.customname) = "EverythingIsOK"];
}
}
}
8 changes: 4 additions & 4 deletions cmd/depviz/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ import (
"github.com/peterbourgon/ff/ffcli"
"go.uber.org/zap"
"go.uber.org/zap/zapcore"
"moul.io/depviz/internal/dvcore"
"moul.io/depviz/internal/dvparser"
"moul.io/depviz/internal/dvserver"
"moul.io/depviz/internal/dvstore"
"moul.io/depviz/v3/internal/dvcore"
"moul.io/depviz/v3/internal/dvparser"
"moul.io/depviz/v3/internal/dvserver"
"moul.io/depviz/v3/internal/dvstore"
"moul.io/godev"
)

Expand Down
4 changes: 2 additions & 2 deletions gen.sum

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

1 change: 0 additions & 1 deletion go.sum

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

2 changes: 1 addition & 1 deletion internal/dvcore/doc.go
Original file line number Diff line number Diff line change
@@ -1 +1 @@
package dvcore // import "moul.io/depviz/internal/dvcore"
package dvcore // import "moul.io/depviz/v3/internal/dvcore"
8 changes: 4 additions & 4 deletions internal/dvcore/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ import (
"github.com/cayleygraph/cayley/schema"
"go.uber.org/zap"
"gopkg.in/yaml.v2"
"moul.io/depviz/internal/dvmodel"
"moul.io/depviz/internal/dvparser"
"moul.io/depviz/internal/dvstore"
"moul.io/depviz/internal/githubprovider"
"moul.io/depviz/v3/internal/dvmodel"
"moul.io/depviz/v3/internal/dvparser"
"moul.io/depviz/v3/internal/dvstore"
"moul.io/depviz/v3/internal/githubprovider"
"moul.io/graphman"
"moul.io/graphman/viz"
"moul.io/multipmuri"
Expand Down
4 changes: 2 additions & 2 deletions internal/dvcore/run_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ import (
"github.com/cayleygraph/cayley/graph"
"github.com/cayleygraph/quad"
"github.com/stretchr/testify/assert"
"moul.io/depviz/internal/dvstore"
"moul.io/depviz/internal/testutil"
"moul.io/depviz/v3/internal/dvstore"
"moul.io/depviz/v3/internal/testutil"
"moul.io/multipmuri"
)

Expand Down
2 changes: 1 addition & 1 deletion internal/dvcore/store.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (

"github.com/cayleygraph/cayley"
"github.com/cayleygraph/cayley/schema"
"moul.io/depviz/internal/dvmodel"
"moul.io/depviz/v3/internal/dvmodel"
)

func StoreDumpQuads(h *cayley.Handle) error {
Expand Down
2 changes: 1 addition & 1 deletion internal/dvmodel/doc.go
Original file line number Diff line number Diff line change
@@ -1 +1 @@
package dvmodel // import "moul.io/depviz/internal/dvmodel"
package dvmodel // import "moul.io/depviz/v3/internal/dvmodel"
2 changes: 1 addition & 1 deletion internal/dvparser/doc.go
Original file line number Diff line number Diff line change
@@ -1 +1 @@
package dvparser // import "moul.io/depviz/internal/dvparser"
package dvparser // import "moul.io/depviz/v3/internal/dvparser"
8 changes: 4 additions & 4 deletions internal/dvserver/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ import (
"fmt"

"go.uber.org/zap"
"moul.io/depviz/internal/dvcore"
"moul.io/depviz/internal/dvmodel"
"moul.io/depviz/internal/dvparser"
"moul.io/depviz/internal/dvstore"
"moul.io/depviz/v3/internal/dvcore"
"moul.io/depviz/v3/internal/dvmodel"
"moul.io/depviz/v3/internal/dvparser"
"moul.io/depviz/v3/internal/dvstore"
)

func (s *service) Graph(ctx context.Context, in *Graph_Input) (*Graph_Output, error) {
Expand Down
2 changes: 1 addition & 1 deletion internal/dvserver/doc.go
Original file line number Diff line number Diff line change
@@ -1 +1 @@
package dvserver // import "moul.io/depviz/internal/dvserver"
package dvserver // import "moul.io/depviz/v3/internal/dvserver"
2 changes: 1 addition & 1 deletion internal/dvserver/dvserver.pb.go

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

4 changes: 2 additions & 2 deletions internal/dvserver/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ import (
chilogger "github.com/treastech/logger"
"go.uber.org/zap"
"google.golang.org/grpc"
"moul.io/depviz/internal/dvcore"
"moul.io/depviz/pkg/chiutil"
"moul.io/depviz/v3/internal/dvcore"
"moul.io/depviz/v3/pkg/chiutil"
"moul.io/multipmuri"
)

Expand Down
2 changes: 1 addition & 1 deletion internal/dvstore/doc.go
Original file line number Diff line number Diff line change
@@ -1 +1 @@
package dvstore // import "moul.io/depviz/internal/dvstore"
package dvstore // import "moul.io/depviz/v3/internal/dvstore"
2 changes: 1 addition & 1 deletion internal/dvstore/query.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
"github.com/cayleygraph/cayley/schema"
"github.com/cayleygraph/quad"
"go.uber.org/zap"
"moul.io/depviz/internal/dvmodel"
"moul.io/depviz/v3/internal/dvmodel"
"moul.io/multipmuri"
)

Expand Down
4 changes: 2 additions & 2 deletions internal/dvstore/query_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import (

_ "github.com/cayleygraph/quad/json"
"github.com/stretchr/testify/assert"
"moul.io/depviz/internal/dvparser"
"moul.io/depviz/internal/testutil"
"moul.io/depviz/v3/internal/dvparser"
"moul.io/depviz/v3/internal/testutil"
"moul.io/godev"
"moul.io/multipmuri"
)
Expand Down
2 changes: 1 addition & 1 deletion internal/dvstore/schema.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package dvstore

import (
"github.com/cayleygraph/cayley/schema"
"moul.io/depviz/internal/dvmodel"
"moul.io/depviz/v3/internal/dvmodel"
)

func Schema() *schema.Config {
Expand Down
2 changes: 1 addition & 1 deletion internal/githubprovider/doc.go
Original file line number Diff line number Diff line change
@@ -1 +1 @@
package githubprovider // import "moul.io/depviz/internal/githubprovider"
package githubprovider // import "moul.io/depviz/v3/internal/githubprovider"
2 changes: 1 addition & 1 deletion internal/githubprovider/github.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"github.com/google/go-github/v28/github"
"go.uber.org/zap"
"golang.org/x/oauth2"
"moul.io/depviz/internal/dvmodel"
"moul.io/depviz/v3/internal/dvmodel"
"moul.io/multipmuri"
)

Expand Down
4 changes: 2 additions & 2 deletions internal/githubprovider/model.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import (
"github.com/cayleygraph/quad"
"github.com/google/go-github/v28/github"
"go.uber.org/zap"
"moul.io/depviz/internal/dvmodel"
"moul.io/depviz/internal/dvparser"
"moul.io/depviz/v3/internal/dvmodel"
"moul.io/depviz/v3/internal/dvparser"
"moul.io/multipmuri"
"moul.io/multipmuri/pmbodyparser"
)
Expand Down
2 changes: 1 addition & 1 deletion internal/testutil/doc.go
Original file line number Diff line number Diff line change
@@ -1 +1 @@
package testutil // import "moul.io/depviz/internal/testutil"
package testutil // import "moul.io/depviz/v3/internal/testutil"
2 changes: 1 addition & 1 deletion pkg/chiutil/doc.go
Original file line number Diff line number Diff line change
@@ -1 +1 @@
package chiutil // import "moul.io/depviz/pkg/chiutil"
package chiutil // import "moul.io/depviz/v3/pkg/chiutil"
2 changes: 1 addition & 1 deletion tool/go.mod

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

0 comments on commit ab3deb6

Please sign in to comment.