cabal

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2019 License: MPL-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDeps

func GetDeps(m module.Module) (graph.Deps, error)

func GetDepsPure

func GetDepsPure(plan Plan) graph.Deps

Types

type Component

type Component struct {
	Depends []string `mapstructure:"depends"`
}

type InstallPlan

type InstallPlan struct {
	// There are two types of install plans: `pre-existing` and `configured`.
	// `pre-existing` corresponds to system-level libraries, and `configured`
	// is for globally-installed and project-local dependencies. To
	// differentiate, the `style` field is used.
	Type    string `mapstructure:"type"`
	Id      string `mapstructure:"id"`
	Name    string `mapstructure:"pkg-name"`
	Version string `mapstructure:"pkg-version"`

	Components map[string]Component `mapstructure:"components"` // Not always present
	Depends    []string             `mapstructure:"depends"`    // Dependencies can be defined here or in Components.*.Depends
	// This field only exists for packages with Type `configured`. It can
	// contain one of two values: `global` for globally-installed dependencies,
	// or `local` for project-local dependencies
	Style string `mapstructure:"style"` // Only exists for packages with type `configured`
}

type Plan

type Plan struct {
	InstallPlans []InstallPlan `mapstructure:"install-plan"`
}

Jump to

Keyboard shortcuts

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