Skip to content

New project with atlas-cli does not compile #104

@seizadi

Description

@seizadi

Repo Source: https://github.com/seizadi/aws-cost

Steps to reproduce:

Install CLI:

> git clone https://github.com/infobloxopen/atlas-cli.git
> cd atlas-cli
> make

Create App:

❯ atlas init-app  -delve -gateway -health -helm -kind -name aws-cost -registry soheileizadi
Generating protobuf files... done!
Starting mod project... done!
Resolving imports... done!
Initializing git repo... done!

Create Compile Error:

❯ make
github.com/seizadi/aws-cost/pkg/pb/service.proto:7:1: warning: Import github.com/envoyproxy/protoc-gen-validate/validate/validate.proto is unused.
github.com/seizadi/aws-cost/pkg/pb/service.proto:8:1: warning: Import protoc-gen-swagger/options/annotations.proto is unused.
....

Compile Error:

#13 10.57 # github.com/seizadi/aws-cost/cmd/server
#13 10.57 cmd/server/main.go:106:38: cannot use "github.com/grpc-ecosystem/grpc-gateway/runtime".WithForwardResponseOption(forwardResponseOption) (type "github.com/grpc-ecosystem/grpc-gateway/runtime".ServeMuxOption) as type "github.com/grpc-ecosystem/grpc-gateway/v2/runtime".ServeMuxOption in argument to gateway.WithGatewayOptions
#13 10.57 cmd/server/main.go:107:38: cannot use "github.com/grpc-ecosystem/grpc-gateway/runtime".WithIncomingHeaderMatcher(gateway.AtlasDefaultHeaderMatcher()) (type "github.com/grpc-ecosystem/grpc-gateway/runtime".ServeMuxOption) as type "github.com/grpc-ecosystem/grpc-gateway/v2/runtime".ServeMuxOption in argument to gateway.WithGatewayOptions
#13 10.57 cmd/server/main.go:110:52: cannot use pb.RegisterAwsCostHandlerFromEndpoint (type func(context.Context, *"github.com/grpc-ecosystem/grpc-gateway/runtime".ServeMux, string, []grpc.DialOption) error) as type gateway.registerFunc in argument to gateway.WithEndpointRegistration

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions