File tree Expand file tree Collapse file tree 5 files changed +39
-0
lines changed
plugins/protocolbuffers/go/v1.36.2
tests/testdata/buf.build/protocolbuffers/go/v1.36.2 Expand file tree Collapse file tree 5 files changed +39
-0
lines changed Original file line number Diff line number Diff line change
1
+ *
2
+ ! Dockerfile
Original file line number Diff line number Diff line change
1
+ # syntax=docker/dockerfile:1.12
2
+ FROM --platform=$BUILDPLATFORM golang:1.23.4-bookworm AS build
3
+
4
+ ARG TARGETOS TARGETARCH
5
+ ENV CGO_ENABLED=0 GOOS=$TARGETOS GOARCH=$TARGETARCH
6
+
7
+ RUN --mount=type=cache,target=/go/pkg/mod \
8
+ go install -ldflags "-s -w" -trimpath google.golang.org/protobuf/cmd/protoc-gen-go@v1.36.2 \
9
+ && mv /go/bin/${GOOS}_${GOARCH}/protoc-gen-go /go/bin/protoc-gen-go || true
10
+
11
+ FROM scratch
12
+ COPY --from=build --link /etc/passwd /etc/passwd
13
+ COPY --from=build --link --chown=root:root /go/bin/protoc-gen-go .
14
+ USER nobody
15
+ ENTRYPOINT [ "/protoc-gen-go" ]
Original file line number Diff line number Diff line change
1
+ version : v1
2
+ name : buf.build/protocolbuffers/go
3
+ plugin_version : v1.36.2
4
+ source_url : https://github.com/protocolbuffers/protobuf-go
5
+ integration_guide_url : https://protobuf.dev/getting-started/gotutorial
6
+ description : Base types for Go. Generates message and enum types.
7
+ output_languages :
8
+ - go
9
+ registry :
10
+ go :
11
+ # https://github.com/protocolbuffers/protobuf-go/blob/v1.36.2/go.mod#L3
12
+ min_version : " 1.21"
13
+ deps :
14
+ - module : google.golang.org/protobuf
15
+ version : v1.36.2
16
+ opts :
17
+ - paths=source_relative
18
+ - default_api_level=API_HYBRID
19
+ spdx_license_id : BSD-3-Clause
20
+ license_url : https://github.com/protocolbuffers/protobuf-go/blob/v1.36.2/LICENSE
Original file line number Diff line number Diff line change
1
+ h1:bYZStzYmjeokewKsEYwZSjv5bnnisLyRtU0GzhQ/2/w=
Original file line number Diff line number Diff line change
1
+ h1:+xJbS4IqPMuDFI10ywKKUDbEuXJXp6x11hMhUviq1k4=
You can’t perform that action at this time.
0 commit comments