Documentation ¶
Index ¶
- func GetAspectVersions() ([]string, error)
- func GetBazelVersions(bazelFork string) ([]string, error)
- func InitializeStartupFlags(args []string) ([]string, []string, error)
- func SeparateBazelFlags(command string, args []string) ([]string, []string, error)
- func UserCacheDir() (string, error)
- type Bazel
- type Bazelisk
- type Output
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetAspectVersions ¶ added in v1.501.3
func GetBazelVersions ¶ added in v1.501.3
func InitializeStartupFlags ¶ added in v1.501.2
Initializes start-up flags from args and returns args without start-up flags
func SeparateBazelFlags ¶ added in v1.509.7
Separates bazel flags from a list of arguments for the given bazel command. Returns bazel flags and other arguments as separate lists.
func UserCacheDir ¶ added in v1.501.2
Types ¶
type Bazel ¶
type Bazel interface { WithEnv(env []string) Bazel AQuery(expr string, bazelFlags []string) (*analysis.ActionGraphContainer, error) BazelDashDashVersion() (string, error) HandleReenteringAspect(streams ioutils.Streams, args []string, aspectLockVersion bool) (bool, error) RunCommand(streams ioutils.Streams, wd *string, command ...string) error InitializeBazelFlags() error Flags() (map[string]*flags.FlagInfo, error) AbsPathRelativeToWorkspace(relativePath string) (string, error) AddBazelFlags(cmd *cobra.Command) error }
var NoWorkspaceRoot Bazel = &bazel{}
This is a special case where we run Bazel without a workspace (e.g., version).
var WorkspaceFromWd Bazel = findWorkspace()
type Bazelisk ¶
type Bazelisk struct { // Set to true in getBazelVersion() if this aspect binary is not the user's configured // version and should re-enter another aspect binary of a different version AspectShouldReenter bool // contains filtered or unexported fields }
func NewBazelisk ¶
func (*Bazelisk) GetConfig ¶ added in v1.0.1
GetConfig reads a configuration value from .bazeliskrc.
func (*Bazelisk) GetEnvOrConfig ¶
GetEnvOrConfig reads a configuration value from the environment, but fall back to reading it from .bazeliskrc.
type Output ¶
func ParseOutputs ¶
func ParseOutputs(agc *analysis.ActionGraphContainer) []Output
ParseOutputs reads the proto result of AQuery and extracts the output file paths with their generator mnemonics.
Click to show internal directories.
Click to hide internal directories.