bufprotoc

package
v1.32.2 Latest Latest
Warning

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

Go to latest
Published: May 28, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Package bufprotoc builds ModuleSets for protoc include paths and file paths.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewModuleSetForProtoc

func NewModuleSetForProtoc(
	ctx context.Context,
	tracer tracing.Tracer,
	storageosProvider storageos.Provider,
	includeDirPaths []string,
	filePaths []string,
) (bufmodule.ModuleSet, error)

NewModuleSetForProtoc returns a new ModuleSet for protoc -I dirPaths and filePaths.

The returned ModuleSet will have a single targeted Module, with target files matching the filePaths.

Technically this will work with len(filePaths) == 0 but we should probably make sure that is banned in protoc.

Types

This section is empty.

Jump to

Keyboard shortcuts

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