Azure / mirrorcat

A tool for mirroring branches across Git repositories
MIT License
29 stars 6 forks source link

Cannot find package "go.opentelemetry.io/otel/api/trace", during "go get" process #16

Open advancedwebdeveloper opened 4 years ago

advancedwebdeveloper commented 4 years ago

Hi. Caught this:

$ go get -u github.com/Azure/mirrorcat/mirrorcat cannot find package "go.opentelemetry.io/otel/api/trace" in any of: /home/oceanfish81/gollvm_dist/src/go.opentelemetry.io/otel/api/trace (from $GOROOT) /home/oceanfish81/go/src/go.opentelemetry.io/otel/api/trace (from $GOPATH) .

I am on Ubuntu 20 x86_64:

$ go version go version go1.15.2 gollvm LLVM 12.0.0git linux/amd64

$ go env GO111MODULE="" GOARCH="amd64" GOBIN="" GOCACHE="/home/oceanfish81/.cache/go-build" GOENV="/home/oceanfish81/.config/go/env" GOEXE="" GOFLAGS="" GOHOSTARCH="amd64" GOHOSTOS="linux" GOINSECURE="" GOMODCACHE="/home/oceanfish81/go/pkg/mod" GONOPROXY="" GONOSUMDB="" GOOS="linux" GOPATH="/home/oceanfish81/go" GOPRIVATE="" GOPROXY="https://proxy.golang.org,direct" GOROOT="/home/oceanfish81/gollvm_dist" GOSUMDB="sum.golang.org" GOTMPDIR="" GOTOOLDIR="/home/oceanfish81/gollvm_dist/tools" GCCGO="/home/oceanfish81/gollvm_dist/bin/llvm-goc" AR="ar" CC="/usr/bin/clang" CXX="/usr/bin/clang++" CGO_ENABLED="1" GOMOD="" CGO_CFLAGS="-g -O2" CGO_CPPFLAGS="" CGO_CXXFLAGS="-g -O2" CGO_FFLAGS="-g -O2" CGO_LDFLAGS="-g -O2" PKG_CONFIG="pkg-config" GOGCCFLAGS="-fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build277371563=/tmp/go-build -gno-record-gcc-switches -funwind-tables"

yogo1212 commented 4 years ago

opentelemetry-go is "in a pre-GA phase of [their] lifecycle that will include breaking changes." (https://github.com/open-telemetry/opentelemetry-go/issues/1279#issuecomment-717315443).

you can still build mirrorcat. just git checkout v0.13.0 in $GOPATH/src/go.opentelemetry.io/otel.

this project might also have the luxury of not yet having made a public release. depends on what you call a release, i guess :-D to fix builds after go get -u (like in the readme of this project), use the symbols from otel directly - like it's done here.