Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't compile KiteX examples code with Go 1.20 #65

Closed
haohu321 opened this issue Feb 22, 2023 · 1 comment
Closed

Can't compile KiteX examples code with Go 1.20 #65

haohu321 opened this issue Feb 22, 2023 · 1 comment

Comments

@haohu321
Copy link

Describe the bug

Can't compile KiteX examples code with Go 1.20

Details: I followed the instructions https://www.cloudwego.io/docs/kitex/getting-started/. When trying to compile the hello server & client code, I got the error from another package's go version check:

panic("Unsupported Go version. Supported versions are: 1.15, 1.16, 1.17, 1.18, 1.19") (no value) used as value

To Reproduce

  1. Install Go environment 1.20.
  2. cd kitex-examples/basic/server && go run .

Expected behavior

Server code runs.

Screenshots

image

Kitex version:

Repo: https://github.com/cloudwego/kitex-examples.git
Branch: main
SHA: 4331b96

Environment:

package main

GO111MODULE=""
GOARCH="amd64"
GOBIN=""
GOCACHE="/Users/foo/Library/Caches/go-build"
GOENV="/Users/foo/Library/Application Support/go/env"
GOEXE=""
GOEXPERIMENT=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOINSECURE=""
GOMODCACHE="/Users/foo/go/pkg/mod"
GONOPROXY=""
GONOSUMDB=""
GOOS="darwin"
GOPATH="/Users/foo/go"
GOPRIVATE=""
GOPROXY="https://proxy.golang.org,direct"
GOROOT="/usr/local/go"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/usr/local/go/pkg/tool/darwin_amd64"
GOVCS=""
GOVERSION="go1.20"
GCCGO="gccgo"
GOAMD64="v1"
AR="ar"
CC="clang"
CXX="clang++"
CGO_ENABLED="1"
GOMOD="/Users/foo/fooWorkspace/goKitexExamples/kitex-examples/go.mod"
GOWORK=""
CGO_CFLAGS="-O2 -g"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-O2 -g"
CGO_FFLAGS="-O2 -g"
CGO_LDFLAGS="-O2 -g"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -arch x86_64 -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/h2/qd6vtkhn59dd5yzk3s4w0mbm0000gn/T/go-build3190407640=/tmp/go-build -gno-record-gcc-switches -fno-common"

Additional context
N/A

@felix021
Copy link
Contributor

felix021 commented Feb 22, 2023

Thanks for your feedback.

We'll release a new version supporting 1.20 soon.

For temporary solution, you can replace with choleraehyq/pid@v0.0.16 & cloudwego/frugal@main

cloudwego/kitex#796

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants