-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Closed
Description
1. What version of Go
and system type/arch are you using?
go version go1.17.1 linux/amd64
2. What version of GoFrame
are you using?
v1.16.6
3. Can this issue be re-produced with the latest release?
yes
4. What did you do?
Follow this tutorial, I create a new project:
$ wget -O gf https://github.com/gogf/gf-cli/releases/download/v1.17.0/gf_linux_amd64 && chmod +x gf && ./gf install
(...)
$ gf version
GoFrame CLI Tool v1.17.0, https://goframe.org
GoFrame Version: cannot find go.mod
CLI Installed At: /home/sbchild/.local/bin/gf
CLI Built Detail:
Go Version: go1.16.3
GF Version: v1.16.4
Git Commit: 971ed46f0b9d4dfebd1907cd3ed851cf9e1a5503
Build Time: 2021-08-10 10:22:59
$ gf init .
initializing...
initialization done!
you can now run 'gf run main.go' to start your journey, enjoy!
$ go get -v -u all
go: downloading go.opentelemetry.io/otel/oteltest v1.0.0-RC2
go: downloading github.com/davecgh/go-spew v1.1.0
go: downloading go.opentelemetry.io/otel/oteltest v1.0.0-RC3
go: downloading gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c
(...)
golang.org/x/text/internal/language
# github.com/gogf/gf/net/ghttp/internal/client
../go/pkg/mod/github.com/gogf/gf@v1.16.6/net/ghttp/internal/client/client_tracing.go:73:3: undefined: attribute.Any
../go/pkg/mod/github.com/gogf/gf@v1.16.6/net/ghttp/internal/client/client_tracing_tracer.go:150:3: undefined: attribute.Any
../go/pkg/mod/github.com/gogf/gf@v1.16.6/net/ghttp/internal/client/client_tracing_tracer.go:151:3: undefined: attribute.Any
golang.org/x/text/unicode/norm
(...)
$ go mod tidy
$ gf run main.go
2021-09-23 19:45:15.638 build: main.go
2021-09-23 19:45:15.638 go build -o bin/main main.go
2021-09-23 19:45:15.822 build error:
# github.com/gogf/gf/net/ghttp/internal/client
../go/pkg/mod/github.com/gogf/gf@v1.16.6/net/ghttp/internal/client/client_tracing.go:73:3: undefined: attribute.Any
../go/pkg/mod/github.com/gogf/gf@v1.16.6/net/ghttp/internal/client/client_tracing_tracer.go:150:3: undefined: attribute.Any
../go/pkg/mod/github.com/gogf/gf@v1.16.6/net/ghttp/internal/client/client_tracing_tracer.go:151:3: undefined: attribute.Any
exit status 2
$ go run main.go
# github.com/gogf/gf/net/ghttp/internal/client
../go/pkg/mod/github.com/gogf/gf@v1.16.6/net/ghttp/internal/client/client_tracing.go:73:3: undefined: attribute.Any
../go/pkg/mod/github.com/gogf/gf@v1.16.6/net/ghttp/internal/client/client_tracing_tracer.go:150:3: undefined: attribute.Any
../go/pkg/mod/github.com/gogf/gf@v1.16.6/net/ghttp/internal/client/client_tracing_tracer.go:151:3: undefined: attribute.Any
5. What did you expect to see?
This project can run successfully
6. What did you see instead?
Can't compile this project with some errors
Metadata
Metadata
Assignees
Labels
No labels