Created
March 29, 2021 10:13
-
-
Save annanay25/d445b1aca458669d8c84d52fd63e9f79 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Annanays-Mac:tempo annanay$ make vendor-check | |
-- | |
-- Deleting existing | |
-- | |
rm -rf opentelemetry-proto | |
rm -rf pkg/.patched-proto | |
find pkg/tempopb -name *.pb.go | xargs -L 1 -I rm | |
pkg/tempopb/trace/v1/trace.pb.go | |
pkg/tempopb/tempo.pb.go | |
pkg/tempopb/common/v1/common.pb.go | |
pkg/tempopb/resource/v1/resource.pb.go | |
find pkg/tempopb -name *.proto | grep -v tempo.proto | xargs -L 1 -I rm | |
-- | |
-- Copying to pkg/.patched-proto | |
-- | |
git submodule update --init | |
Submodule path 'opentelemetry-proto': checked out '286810dc20d40f6483abf719f2b8de28f543fc78' | |
mkdir -p pkg/.patched-proto | |
cp -R opentelemetry-proto/opentelemetry/proto/* pkg/.patched-proto | |
-- | |
-- Editing proto | |
-- | |
find pkg/.patched-proto -name "*.proto" | xargs -L 1 sed -i '' 's+ opentelemetry.proto+ tempopb+g' | |
find pkg/.patched-proto -name "*.proto" | xargs -L 1 sed -i '' 's+github.com/open-telemetry/opentelemetry-proto/gen/go+github.com/grafana/tempo/pkg/tempopb+g' | |
find pkg/.patched-proto -name "*.proto" | xargs -L 1 sed -i '' 's+import "opentelemetry/proto/+import "+g' | |
-- | |
-- Gen proto -- | |
-- | |
docker run --rm -u 501 -v/Users/annanay/Desktop/git/go/src/github.com/grafana/tempo:/Users/annanay/Desktop/git/go/src/github.com/grafana/tempo -w/Users/annanay/Desktop/git/go/src/github.com/grafana/tempo otel/build-protobuf:0.2.1 --proto_path=/Users/annanay/Desktop/git/go/src/github.com/grafana/tempo -Ipkg/.patched-proto --gogofaster_out=plugins=grpc,paths=source_relative:./pkg/tempopb/ pkg/.patched-proto/common/v1/common.proto | |
docker run --rm -u 501 -v/Users/annanay/Desktop/git/go/src/github.com/grafana/tempo:/Users/annanay/Desktop/git/go/src/github.com/grafana/tempo -w/Users/annanay/Desktop/git/go/src/github.com/grafana/tempo otel/build-protobuf:0.2.1 --proto_path=/Users/annanay/Desktop/git/go/src/github.com/grafana/tempo -Ipkg/.patched-proto --gogofaster_out=plugins=grpc,paths=source_relative:./pkg/tempopb/ pkg/.patched-proto/resource/v1/resource.proto | |
docker run --rm -u 501 -v/Users/annanay/Desktop/git/go/src/github.com/grafana/tempo:/Users/annanay/Desktop/git/go/src/github.com/grafana/tempo -w/Users/annanay/Desktop/git/go/src/github.com/grafana/tempo otel/build-protobuf:0.2.1 --proto_path=/Users/annanay/Desktop/git/go/src/github.com/grafana/tempo -Ipkg/.patched-proto --gogofaster_out=plugins=grpc,paths=source_relative:./pkg/tempopb/ pkg/.patched-proto/trace/v1/trace.proto | |
docker run --rm -u 501 -v/Users/annanay/Desktop/git/go/src/github.com/grafana/tempo:/Users/annanay/Desktop/git/go/src/github.com/grafana/tempo -w/Users/annanay/Desktop/git/go/src/github.com/grafana/tempo otel/build-protobuf:0.2.1 --proto_path=/Users/annanay/Desktop/git/go/src/github.com/grafana/tempo -Ipkg/.patched-proto --gogofaster_out=plugins=grpc,paths=source_relative:./ pkg/tempopb/tempo.proto | |
rm -rf pkg/.patched-proto | |
go mod vendor | |
go mod tidy -e | |
github.com/grafana/tempo/modules/distributor/receiver imports | |
go.opentelemetry.io/collector/receiver/opencensusreceiver imports | |
github.com/soheilhy/cmux tested by | |
github.com/soheilhy/cmux.test imports | |
google.golang.org/grpc/examples/helloworld/helloworld: ambiguous import: found package google.golang.org/grpc/examples/helloworld/helloworld in multiple modules: | |
google.golang.org/grpc v1.33.2 (/Users/annanay/go/pkg/mod/google.golang.org/[email protected]/examples/helloworld/helloworld) | |
google.golang.org/grpc/examples v0.0.0-20200728065043-dfc0c05b2da9 (/Users/annanay/go/pkg/mod/google.golang.org/grpc/[email protected]/helloworld/helloworld) | |
git diff --exit-code -- go.sum go.mod vendor/ pkg/tempopb/ | |
Annanays-Mac:tempo annanay$ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment