build

package
v0.0.0-...-cf3f34d Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Cache *cache.Config
}

func DefaultConfig

func DefaultConfig() *Config

func LoadConfigFile

func LoadConfigFile(path string, requireExists bool) (*Config, error)

type Context

type Context struct {
	Config          *Config
	Cache           *cache.Cache
	RootModFile     *protomodfile.ProtoModFile
	RootModFilePath string
	RootModDir      string
}

func LoadContext

func LoadContext(config *Config, rootDir string) (*Context, error)

LoadContext initialises a context from a proto.mod file in rootDir, or any of its parent directories. That proto.mod file describes the root module.

func (*Context) GetRootModule

func (context *Context) GetRootModule() resolver.RootModule

func (*Context) ResolveIncludeDirs

func (context *Context) ResolveIncludeDirs() (dirs []IncludeDir, err error)

func (*Context) ResolveModuleVersions

func (context *Context) ResolveModuleVersions() ([]module.Version, error)

type IncludeDir

type IncludeDir interface {
	io.Closer
	Dir() string
}

Jump to

Keyboard shortcuts

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