Documentation
¶
Index ¶
- func DoBuild(args *arguments.BuildCommand, workspacePath path.Parser)
- type LocalPathExtractingModuleDotBazelHandler
- func (LocalPathExtractingModuleDotBazelHandler) BazelDep(name label.Module, version *label.ModuleVersion, repoName label.ApparentRepo, ...) error
- func (h *LocalPathExtractingModuleDotBazelHandler) GetRootModuleName() (label.Module, error)
- func (h *LocalPathExtractingModuleDotBazelHandler) LocalPathOverride(moduleName label.Module, path path.Parser) error
- func (h *LocalPathExtractingModuleDotBazelHandler) Module(name label.Module, version *label.ModuleVersion, repoName label.ApparentRepo, ...) error
- func (LocalPathExtractingModuleDotBazelHandler) MultipleVersionOverride(moduleName label.Module, versions []label.ModuleVersion, registry *url.URL) error
- func (LocalPathExtractingModuleDotBazelHandler) RegisterExecutionPlatforms(platformTargetPatterns []label.ApparentTargetPattern, devDependency bool) error
- func (LocalPathExtractingModuleDotBazelHandler) RegisterToolchains(toolchainTargetPatterns []label.ApparentTargetPattern, devDependency bool) error
- func (LocalPathExtractingModuleDotBazelHandler) RepositoryRuleOverride(moduleName label.Module, ...) error
- func (LocalPathExtractingModuleDotBazelHandler) SingleVersionOverride(moduleName label.Module, version *label.ModuleVersion, registry *url.URL, ...) error
- func (LocalPathExtractingModuleDotBazelHandler) UseExtension(extensionBzlFile label.ApparentLabel, extensionName label.StarlarkIdentifier, ...) (pg_starlark.ModuleExtensionProxy, error)
- func (LocalPathExtractingModuleDotBazelHandler) UseRepoRule(repoRuleBzlFile label.ApparentLabel, repoRuleName label.StarlarkIdentifier) (pg_starlark.RepoRuleProxy, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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 ¶
func (LocalPathExtractingModuleDotBazelHandler) UseRepoRule(repoRuleBzlFile label.ApparentLabel, repoRuleName label.StarlarkIdentifier) (pg_starlark.RepoRuleProxy, error)
UseRepoRule can normally be used to capture calls in MODULE.bazel to use_repo_rule(). This implementation does not need to do that.