We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fa2e604 commit f2acc8dCopy full SHA for f2acc8d
protoc-gen-go-grpc/dagger/main.go
@@ -6,6 +6,7 @@ import (
6
"context"
7
"fmt"
8
"path"
9
+ "strings"
10
11
"dagger/protoc-gen-go-grpc/internal/dagger"
12
)
@@ -34,8 +35,8 @@ func New(
34
35
// +default="v1.3.0"
36
protocGenGoGRPCVersion string,
37
) *ProtocGenGoGRPC {
- protobufRelURL := fmt.Sprintf("https://github.com/protocolbuffers/protobuf/releases/download/v%v/protoc-%v-linux-x86_64.zip",
38
- protobufVersion, protobufVersion)
+ protobufRelURL := fmt.Sprintf("https://github.com/protocolbuffers/protobuf/releases/download/%v/protoc-%v-linux-x86_64.zip",
39
+ protobufVersion, strings.TrimPrefix(protobufVersion, "v"))
40
41
protobuf := dag.Container().
42
From(goImage).
0 commit comments