Documentation ¶
Overview ¶
Package compatibility provides support for compatibility testing between different versions of vanadium.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildSimpleAtVersion ¶
func BuildSimpleAtVersion(ctx *context.T, version, bindir string, verbose bool) (client, server, mt string, cleanup func(), err error)
BuildSimpleAtVersion builds v.io/x/ref/test/compatibility/modules/simple at the specified version. Currently v0.1.20 is the only supported version. If bindir is specified then the binaries are written to that directory.
func BuildWithDependencies ¶
func BuildWithDependencies(ctx context.Context, pkg string, opts ...BuildOption) (root string, binaries []string, cleanup func(), err error)
BuildWithDependencies builds a go module with the ability to specify its dependencies. It operates by using go get -d and then go mod edit on the downloaded package before building it. The returned cleanup function must always be called, even when an error is returned.
Types ¶
type BuildOption ¶
type BuildOption func(o *builder)
BuildOption represents an option to Build.
func Build ¶
func Build(path, binary string) BuildOption
Build specifies the main package or file to be built within this package if the package's root directory does not contain that main function.
func GOPATH ¶
func GOPATH(dir string) BuildOption
GOPATH specifies the GOPATH to use with go mod download, mod edit, go build etc. If not specified a new temporary directory is created and used.
func GoCmd ¶
func GoCmd(cmd string) BuildOption
GoCmd specifies a specific instance of the 'go' command to use in place of the system available version of 'go'.
func GoGet ¶
func GoGet(args ...string) BuildOption
GoGet adds a 'go get args...' invocation to the set of commands to be run to modify the go.mod file.
func GoMod ¶
func GoMod(args ...string) BuildOption
GoMod adds a 'go mod args...' invocation to the set of commands to be run to modify the go.mod file.
func Verbose ¶
func Verbose(v bool) BuildOption
Verbose controls printing detailed progress messages to os.Stderr.