buildutil

package
v0.0.0-...-7399b32 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package buildutil contains common utility methods for generating bazel build files.

Index

Constants

View Source
const (
	DefaultCondaRepo = "conda_env"
	BazelRulesConda  = "com_github_10XGenomics_rules_conda"
)

Consistent naming for bazel repositories.

Variables

This section is empty.

Functions

func Attr

func Attr(name string, value build.Expr) *build.AssignExpr

Build `attr = <value>` expression.

func GlobExpr

func GlobExpr(l ...string) *build.CallExpr

Build expression for `glob(["l"])`.

func Ident

func Ident(expr build.Expr) string

func ListExpr

func ListExpr(items ...build.Expr) *build.ListExpr

Build list expression.

func LoadExpr

func LoadExpr(repo string, values ...string) *build.LoadStmt

func PublicVis

func PublicVis() *build.ListExpr

Build expression for `["//visibility:public"]`.

func StrAttr

func StrAttr(name, value string) *build.AssignExpr

Build `attr = "value"` expression.

func StrExpr

func StrExpr(value string) *build.StringExpr

Build string expression.

func StrExprList

func StrExprList(list ...string) []build.Expr

Build a list of string expressions.

func StrListAttr

func StrListAttr(name string, value ...string) *build.AssignExpr

Types

This section is empty.

Jump to

Keyboard shortcuts

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