diff --git a/build b/build index 98a51ae..21c0a62 100755 --- a/build +++ b/build @@ -11,6 +11,16 @@ gen_version echo "Building metad ..." mkdir -p bin + +go mod init + +# fix google.golang.org/grpc/naming: module google.golang.org/grpc@latest found (v1.37.0), but does not contain package google.golang.org/grpc/naming +# https://github.com/yunify/metad/issues/24 +go mod edit -replace google.golang.org/grpc@v1.37.0=google.golang.org/grpc@v1.3.0 + +go mod vendor +go mod tidy + go build -o $OUTPUT . revert_version diff --git a/log/log.go b/log/log.go index 16e6578..d7cc899 100644 --- a/log/log.go +++ b/log/log.go @@ -17,7 +17,7 @@ import ( "strings" "time" - log "github.com/Sirupsen/logrus" + log "github.com/sirupsen/logrus" ) type LogFormatter struct {