build

package
v0.0.0-...-8e8c7aa Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2026 License: Apache-2.0 Imports: 61 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DoBuild

func DoBuild(args *arguments.BuildCommand, workspacePath path.Parser)

DoBuild implements the "bazel build" command, which builds a specified set of targets in the current workspace.

Types

type LocalPathExtractingModuleDotBazelHandler

type LocalPathExtractingModuleDotBazelHandler struct {
	// contains filtered or unexported fields
}

LocalPathExtractingModuleDotBazelHandler is capable of capturing the paths contained in local_path_override() directives of a MODULE.bazel file. These paths are needed by the client to determine which directories to upload to the server to perform the build.

func NewLocalPathExtractingModuleDotBazelHandler

func NewLocalPathExtractingModuleDotBazelHandler(modulePaths map[label.Module]path.Parser, rootModulePath path.Parser) *LocalPathExtractingModuleDotBazelHandler

NewLocalPathExtractingModuleDotBazelHandler creates a new LocalPathExtractingModuleDotBazelHandler that is capable of capturing the paths contains in local_path_override() directives of a MODULE.bazel file.

func (LocalPathExtractingModuleDotBazelHandler) BazelDep

func (LocalPathExtractingModuleDotBazelHandler) BazelDep(name label.Module, version *label.ModuleVersion, repoName label.ApparentRepo, devDependency bool) error

BazelDep can normally be used to capture calls in MODULE.bazel to bazel_dep(). This implementation does not need to do that.

func (*LocalPathExtractingModuleDotBazelHandler) GetRootModuleName

func (h *LocalPathExtractingModuleDotBazelHandler) GetRootModuleName() (label.Module, error)

GetRootModuleName returns the name of the module whose MODULE.bazel file was parsed.

func (*LocalPathExtractingModuleDotBazelHandler) LocalPathOverride

func (h *LocalPathExtractingModuleDotBazelHandler) LocalPathOverride(moduleName label.Module, path path.Parser) error

LocalPathOverride is used to capture calls in MODULE.bazel to local_path_override(). This allows extracting the name and path of modules that need to be uploaded in addition to the root module.

func (*LocalPathExtractingModuleDotBazelHandler) Module

func (h *LocalPathExtractingModuleDotBazelHandler) Module(name label.Module, version *label.ModuleVersion, repoName label.ApparentRepo, bazelCompatibility []string) error

Module is used to capture calls in MODULE.bazel to module(). This allows extracting the name of the root module.

func (LocalPathExtractingModuleDotBazelHandler) MultipleVersionOverride

func (LocalPathExtractingModuleDotBazelHandler) MultipleVersionOverride(moduleName label.Module, versions []label.ModuleVersion, registry *url.URL) error

MultipleVersionOverride can normally be used to capture calls in MODULE.bazel to multiple_version_override(). This implementation does not need to do that.

func (LocalPathExtractingModuleDotBazelHandler) RegisterExecutionPlatforms

func (LocalPathExtractingModuleDotBazelHandler) RegisterExecutionPlatforms(platformTargetPatterns []label.ApparentTargetPattern, devDependency bool) error

RegisterExecutionPlatforms can normally be used to capture calls in MODULE.bazel to register_execution_platforms(). This implementation does not need to do that.

func (LocalPathExtractingModuleDotBazelHandler) RegisterToolchains

func (LocalPathExtractingModuleDotBazelHandler) RegisterToolchains(toolchainTargetPatterns []label.ApparentTargetPattern, devDependency bool) error

RegisterToolchains can normally be used to capture calls in MODULE.bazel to register_toolchains(). This implementation does not need to do that.

func (LocalPathExtractingModuleDotBazelHandler) RepositoryRuleOverride

func (LocalPathExtractingModuleDotBazelHandler) RepositoryRuleOverride(moduleName label.Module, repositoryRuleIdentifier label.CanonicalStarlarkIdentifier, attrs map[string]starlark.Value) error

RepositoryRuleOverride can normally be used to capture calls in MODULE.bazel to archive_override() and git_override(). This implementation does not need to do that.

func (LocalPathExtractingModuleDotBazelHandler) SingleVersionOverride

func (LocalPathExtractingModuleDotBazelHandler) SingleVersionOverride(moduleName label.Module, version *label.ModuleVersion, registry *url.URL, patchOptions *pg_starlark.PatchOptions) error

SingleVersionOverride can normally be used to capture calls in MODULE.bazel to single_version_override(). This implementation does not need to do that.

func (LocalPathExtractingModuleDotBazelHandler) UseExtension

func (LocalPathExtractingModuleDotBazelHandler) UseExtension(extensionBzlFile label.ApparentLabel, extensionName label.StarlarkIdentifier, devDependency, isolate bool) (pg_starlark.ModuleExtensionProxy, error)

UseExtension can normally be used to capture calls in MODULE.bazel to use_extension(). This implementation does not need to do that.

func (LocalPathExtractingModuleDotBazelHandler) UseRepoRule

UseRepoRule can normally be used to capture calls in MODULE.bazel to use_repo_rule(). This implementation does not need to do that.

Jump to

Keyboard shortcuts

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