carthage

package
v1.1.9 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2021 License: MPL-2.0 Imports: 9 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RecurseDeps

func RecurseDeps(pkgMap map[pkg.ID]pkg.Package, p Package)

Types

type Carthage

type Carthage struct {
	Bin string
}

func (*Carthage) Install

func (c *Carthage) Install(dir string) *errors.Error

type Package

type Package struct {
	Name         string // Name of project
	Version      string // Version of project
	Dependencies []Requirement
	Dir          string // directory of cartfile
}

func FromResolvedCartfile

func FromResolvedCartfile(projectName string, dir string) (Package, *errors.Error)

From the docs: Cartfiles are a restricted subset of the Ordered Graph Data Language, and any standard OGDL tool should be able to parse them. Because of this, we use an OGDL parsing library (rveen/ogdl), which parses a cartfile like so: _

github
	Quick/Nimble
		v7.1.3
github
	facebook/ios-snapshot-test-case
		2.1.4
github
	facebook/yoga
		1.9.0
github
	jspahrsummers/xcconfigs
		0.9

type Requirement

type Requirement struct {
	Origin       string // "github" || "git" || "binary"
	Name         string
	Revision     string // tag/branch/commit
	CheckoutName string // if github repo, i.e. "Quick/Nimble", Name will be "Nimble"
}

func (Requirement) Package

func (r Requirement) Package(dir string) (Package, *errors.Error)

Attempt to construct a Package from a dep given the parent directory

func (Requirement) String

func (r Requirement) String() string

Jump to

Keyboard shortcuts

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