resolve

package
v0.0.0-...-dbe7a22 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2022 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Resolve

func Resolve(wsDir string, vendorDir string, registries []string) error

Types

type ArchiveOverride

type ArchiveOverride struct {
	URL         string
	Integrity   string
	StripPrefix string
	Patches     []fetch.Patch
}

type DepGraph

type DepGraph map[common.ModuleKey]*Module

type GitOverride

type GitOverride struct {
	Repo    string
	Commit  string
	Patches []fetch.Patch
}

type LocalPathOverride

type LocalPathOverride struct {
	Path string
}

type Module

type Module struct {
	// Fields from module()
	Key               common.ModuleKey
	CompatLevel       int
	BazelCompat       string
	ModuleRuleExports string
	Toolchains        []string
	ExecPlatforms     []string

	// Deps come from bazel_dep(). The key type is the repo_name
	Deps map[string]common.ModuleKey

	// The registry that the module comes from. Can be nil if an override exists
	Reg registry.Registry

	// These are (potentially) filled post-selection
	Fetcher  fetch.Fetcher // If an override exists, this can be filled during discovery
	RepoName string
}

func NewModule

func NewModule() *Module

type MultipleVersionOverride

type MultipleVersionOverride struct {
	Versions []string
	Registry string
}

type OverrideSet

type OverrideSet map[string]interface{}

type SingleVersionOverride

type SingleVersionOverride struct {
	Version  string
	Registry string
	Patches  []fetch.Patch
}

Jump to

Keyboard shortcuts

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