run

package
v1.202541.2 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2025 License: Apache-2.0 Imports: 31 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ASPECT_WATCH_BZL_CONTENT []byte
View Source
var (
	SHUTDOWN_KILL_DELAY = 5 * time.Second
)

Functions

This section is empty.

Types

type ChangeDetector added in v1.202541.2

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

func (*ChangeDetector) Close added in v1.202541.2

func (cd *ChangeDetector) Close() error

type ExecLogEntry added in v1.202541.2

type ExecLogEntry struct {
	ListedOutputs []string `json:"listedOutputs"`
	Outputs       []struct {
		Path string `json:"path"`
	} `json:"actualOutputs"`
}

type IBazelProtocol added in v1.202541.2

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

A IncrementalBazel implementation that communicates with the ibazel protocol.

func (*IBazelProtocol) Address added in v1.202541.2

func (ib *IBazelProtocol) Address() string

func (*IBazelProtocol) Close added in v1.202541.2

func (ib *IBazelProtocol) Close() error

func (*IBazelProtocol) Cycle added in v1.202541.2

func (ib *IBazelProtocol) Cycle(changes ibp.SourceInfoMap) error

func (*IBazelProtocol) Env added in v1.202541.2

func (ib *IBazelProtocol) Env() []string

func (*IBazelProtocol) Exit added in v1.202541.2

func (ib *IBazelProtocol) Exit(err error) error

func (*IBazelProtocol) HasConnection added in v1.202541.2

func (ib *IBazelProtocol) HasConnection() bool

func (*IBazelProtocol) Init added in v1.202541.2

func (ib *IBazelProtocol) Init(sources ibp.SourceInfoMap) error

func (*IBazelProtocol) Serve added in v1.202541.2

func (ib *IBazelProtocol) Serve(ctx context.Context) error

func (*IBazelProtocol) WaitForConnection added in v1.202541.2

func (ib *IBazelProtocol) WaitForConnection() <-chan int

type RestartBazelProtocol added in v1.202541.2

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

A IncrementalBazel implementation that restarts the process

func (*RestartBazelProtocol) Address added in v1.202541.2

func (ib *RestartBazelProtocol) Address() string

func (*RestartBazelProtocol) Close added in v1.202541.2

func (rb *RestartBazelProtocol) Close() error

func (*RestartBazelProtocol) Cycle added in v1.202541.2

func (rb *RestartBazelProtocol) Cycle(changes ibp.SourceInfoMap) error

func (*RestartBazelProtocol) Env added in v1.202541.2

func (ib *RestartBazelProtocol) Env() []string

func (*RestartBazelProtocol) Exit added in v1.202541.2

func (rb *RestartBazelProtocol) Exit(err error) error

func (*RestartBazelProtocol) HasConnection added in v1.202541.2

func (rb *RestartBazelProtocol) HasConnection() bool

func (*RestartBazelProtocol) Init added in v1.202541.2

func (rb *RestartBazelProtocol) Init(sources ibp.SourceInfoMap) error

func (*RestartBazelProtocol) Serve added in v1.202541.2

func (ib *RestartBazelProtocol) Serve(ctx context.Context) error

func (*RestartBazelProtocol) WaitForConnection added in v1.202541.2

func (ib *RestartBazelProtocol) WaitForConnection() <-chan int

type Run

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

Run represents the aspect run command.

func New

func New(
	streams ioutils.Streams,
	hstreams ioutils.Streams,
	bzl bazel.Bazel,
) *Run

New creates a Run command.

func (*Run) Run

func (runner *Run) Run(ctx context.Context, cmd *cobra.Command, args []string) (exitErr error)

Run runs the aspect run command, calling `bazel run` with a local Build Event Protocol backend used by Aspect plugins to subscribe to build events.

Jump to

Keyboard shortcuts

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