protoc-gen-bq-schema

command module
v0.0.0-...-bbf918e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 27, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

README

protoc-gen-bq-schema

This is a significant refactor of the GoogleCloudPlatform protoc-gen-bq-schema plugin. NOT the functionality, but the surrounding scaffolding to run within a Bazel build environment.

In addition, there is a new GitHub pages website. Please visit the site to learn about how to configure and use this project.

I'd like to sincerely thank the contributors to the original plugin. It's a foundational tool for extending and further automating tool chains.

I sincerely hope you find this extension useful, especially if you're using Bazel.

Using the Bazel Tool Chain

Dependencies

NOTE: Test the execution, bazelisk version; then create an alias for 'bazel'.

# Build
bazel build //...

# Test
bazel test //...

# Test Coverage
bazel coverage //...
Make Targets analogs
make bazel
make bazel-test
make bazel-coverate

Using the Go Tool Chain

If you are using Native Go, and Protoc, there are incompatibilities between various versions which impact the build integrity. This IS NOT the case if you use the Bazel tool chain, as all dependencies are managed.

Dependencies
  • Go - Version 1.19 or later.
  • Protobuf Compiler - Version 21.5 (Tested)

Build with Make


# Make all (uses native go tool chain)
$ make all

# Run tests
$ make test

# Run Generate Files
$ make generate

# Build
$ make compile

# Clean
$ make clean

Native Go Build

Generate

Generate the Protobuf Files for the protos defined in the API directory.

NOTE: These generated files ONLY IMPACT the Go tool chain.

$ go generate ./...
Test
$ go test ./...
Build

Build the project

$ go build

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
pkg
protos module

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL