File tree Expand file tree Collapse file tree 7 files changed +27
-3
lines changed
plugins/googlecloudplatform/bq-schema
tests/testdata/buf.build/googlecloudplatform/bq-schema/v2.0.1 Expand file tree Collapse file tree 7 files changed +27
-3
lines changed Original file line number Diff line number Diff line change 11source :
2- # Disabled until we have a proper release
3- # See: https://github.com/GoogleCloudPlatform/protoc-gen-bq-schema/pull/52
4- disabled : true
52 github :
63 owner : GoogleCloudPlatform
74 repository : protoc-gen-bq-schema
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.10
2+ FROM --platform=$BUILDPLATFORM golang:1.23.3-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 github.com/GoogleCloudPlatform/protoc-gen-bq-schema/v2@v2.0.1 \
9+ && mv /go/bin/${GOOS}_${GOARCH}/protoc-gen-bq-schema /go/bin/protoc-gen-bq-schema || true
10+
11+ FROM scratch
12+ COPY --from=build --link --chown=root:root /etc/passwd /etc/passwd
13+ COPY --from=build --link /go/bin/protoc-gen-bq-schema /
14+ USER nobody
15+ ENTRYPOINT [ "/protoc-gen-bq-schema" , "-logtostderr=true" ]
Original file line number Diff line number Diff line change 1+ version : v1
2+ name : buf.build/googlecloudplatform/bq-schema
3+ plugin_version : v2.0.1
4+ source_url : https://github.com/GoogleCloudPlatform/protoc-gen-bq-schema
5+ description : A plugin to convert Protobuf messages into JSON schema files for BigQuery.
6+ spdx_license_id : Apache-2.0
7+ license_url : https://github.com/GoogleCloudPlatform/protoc-gen-bq-schema/blob/v2.0.1/LICENSE
Original file line number Diff line number Diff line change 1+ h1:lNkjrxnPqxLv2yMj/Uk+MEnZXimFsus4qjt9W9Ys/aI=
Original file line number Diff line number Diff line change 1+ h1:47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU=
Original file line number Diff line number Diff line change 1+ h1:47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU=
You can’t perform that action at this time.
0 commit comments