workspace_rules

package
v0.0.0-...-e600795 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package workspace_rules contains implementations of Bazel workspace rules (only callable from WORKSPACE files).

Index

Constants

This section is empty.

Variables

View Source
var Workspace = newWorkspaceRule("workspace",
	func(ctx core.Context, args starlark.Tuple, kwargs []starlark.Tuple) error {

		target := &WorkspaceArgs{}
		if err := builtins_args.ProcessArgs(args, kwargs, ctx, target); err != nil {
			return err
		}
		ctx.SetWorkspaceName(core.WorkspaceName(*target.Name))
		return nil
	})

Workspace implements the Bazel workspace function.

Functions

func NotImplemented

func NotImplemented(ruleName string) *starlark.Builtin

NotImplemented is used for Bazel workspace rules that we haven't implemented (yet).

Types

type WorkspaceArgs

type WorkspaceArgs struct {
	Name *string `bazel:"name!"`
}

WorkspaceArgs contains the argument for the workspace Bazel function.

func (*WorkspaceArgs) DidProcessArgs

func (self *WorkspaceArgs) DidProcessArgs(ctx core.Context) error

Jump to

Keyboard shortcuts

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