File tree Expand file tree Collapse file tree 5 files changed +39
-0
lines changed
plugins/protocolbuffers/go/v1.36.10
tests/testdata/buf.build/protocolbuffers/go/v1.36.10 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.18
2+ FROM --platform=$BUILDPLATFORM golang:1.25.1-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/
[email protected] \
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.10
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.10/go.mod#L3
12+ min_version : " 1.23"
13+ deps :
14+ - module : google.golang.org/protobuf
15+ version : v1.36.10
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.10/LICENSE
Original file line number Diff line number Diff line change 1+ h1:DVRI9kvGeBSPKKLDpbKu7Orm57DZX2i56uKAs1Tg8WQ=
Original file line number Diff line number Diff line change 1+ h1:BPUiHKtJ7mdGZ1+5sniCPu7Mgc4C7ZqH3xzCPYApsCI=
You can’t perform that action at this time.
0 commit comments