Skip to content

Commit

Permalink
feat: make chiutil go-importable
Browse files Browse the repository at this point in the history
  • Loading branch information
moul committed Feb 5, 2020
1 parent 7328188 commit 58f9d29
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 8 deletions.
7 changes: 2 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,6 @@ GOBINS = ./cmd/depviz
#GOBINS += ./tools/sed-i-github-issues
DOCKER_IMAGE ?= moul/depviz


all: test install


PRE_INSTALL_STEPS += generate
PRE_TEST_STEPS += generate
PRE_BUILD_STEPS += generate
Expand Down Expand Up @@ -51,6 +47,7 @@ gen.sum: $(GEN_DEPS)
-xec 'make generate_local'; \
make tidy \
)
@rm -f gen.sum.tmp


PROTOC_OPTS = -I ./vendor/github.com/grpc-ecosystem/grpc-gateway:./api:./vendor:/protobuf
Expand All @@ -62,7 +59,7 @@ generate_local:
--gogofaster_out="plugins=grpc:$(GOPATH)/src" \
"$$proto" \
); done
goimportbs -w ./pkg ./cmd ./internal
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 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 internal/chiutil/doc.go

This file was deleted.

2 changes: 1 addition & 1 deletion 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/chiutil"
"moul.io/depviz/internal/dvcore"
"moul.io/depviz/pkg/chiutil"
"moul.io/multipmuri"
)

Expand Down
File renamed without changes.
1 change: 1 addition & 0 deletions pkg/chiutil/doc.go
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
package chiutil // import "moul.io/depviz/pkg/chiutil"

0 comments on commit 58f9d29

Please sign in to comment.