These changes address the following warning showing up on `go get`
operations:
go: module github.com/golang/protobuf is deprecated: Use the
"google.golang.org/protobuf" module instead.
All changes are made using the recommendations in the per-function
deprecation notices from the docs at
https://pkg.go.dev/github.com/golang/protobuf/ptypes
19 lines
445 B
Go
19 lines
445 B
Go
package singleprocess
|
|
|
|
import (
|
|
"context"
|
|
|
|
"github.com/hashicorp/vagrant/internal/protocolversion"
|
|
"github.com/hashicorp/vagrant/internal/server/proto/vagrant_server"
|
|
"google.golang.org/protobuf/types/known/emptypb"
|
|
)
|
|
|
|
func (s *service) GetVersionInfo(
|
|
ctx context.Context,
|
|
req *emptypb.Empty,
|
|
) (*vagrant_server.GetVersionInfoResponse, error) {
|
|
return &vagrant_server.GetVersionInfoResponse{
|
|
Info: protocolversion.Current(),
|
|
}, nil
|
|
}
|