carthage

package
v1.1.10 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2021 License: MPL-2.0 Imports: 9 Imported by: 3 modules, 2 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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