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

Invoker fails to build due to new Go version #770

Open
alansong21 opened this issue Nov 8, 2023 · 1 comment
Open

Invoker fails to build due to new Go version #770

alansong21 opened this issue Nov 8, 2023 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@alansong21
Copy link

Due to the recent update in the Go version (from 1.18 to 1.21), Invoker fails to build when running make invoker in vSwarm/tools/invoker.

Error message:

        --go_out=. \
        --go_opt="paths=source_relative" \
        proto/helloworld.proto
protoc \
        --go-grpc_out=. \
        --go-grpc_opt="paths=source_relative" \
        proto/helloworld.proto
go mod tidy
go: go.mod file indicates go 1.21, but maximum version supported by tidy is 1.18
make: *** [Makefile:2: invoker] Error 1```
@alansong21 alansong21 added the bug Something isn't working label Nov 8, 2023
@dhschall dhschall self-assigned this Nov 9, 2023
@dhschall
Copy link
Contributor

dhschall commented Nov 9, 2023

You have to install upgrade go to version 1.21 and then try again.
https://go.dev/doc/install

# Install new
 rm -rf /usr/local/go && tar -C /usr/local -xzf go1.21.4.linux-amd64.tar.gz
export PATH=$PATH:/usr/local/go/bin

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants