receipt

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: May 29, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const InstallReceiptFile = "INSTALL_RECEIPT.json"

InstallReceiptFile is the name of the file.

Variables

This section is empty.

Functions

This section is empty.

Types

type InstallReceipt

type InstallReceipt struct {
	HomebrewVersion       string                      `json:"homebrew_version"`
	UsedOptions           []any                       `json:"used_options"`
	UnusedOptions         []any                       `json:"unused_options"`
	BuiltAsBottle         bool                        `json:"built_as_bottle"`
	PouredFromBottle      bool                        `json:"poured_from_bottle"`
	LoadedFromAPI         bool                        `json:"loaded_from_api"`
	InstalledAsDependency bool                        `json:"installed_as_dependency"`
	InstalledOnRequest    bool                        `json:"installed_on_request"`
	ChangedFiles          []string                    `json:"changed_files"`
	Time                  uint                        `json:"time"`
	SourceModifiedTime    uint                        `json:"source_modified_time"`
	Compiler              string                      `json:"compiler"`
	Aliases               []string                    `json:"aliases"`
	RuntimeDependencies   []*brewv1.RuntimeDependency `json:"runtime_dependencies"`
	Source                Source                      `json:"source"`
	Arch                  string                      `json:"arch"`
	BuiltOn               tab.BuiltOn
}

InstallReceipt represents the INSTALL_RECEIPT.json file.

func CreateInstallReceipt

func CreateInstallReceipt(version string, requested []string, info *brewv1.Info) *InstallReceipt

CreateInstallReceipt creates an install receipt for the formula.

func Load

func Load(keg string) (*InstallReceipt, error)

Load loads the INSTALL_RECEIPT.json for a keg.

A return value of nil, nil signifies that no install receipt was found.

func NewInstallReceipt

func NewInstallReceipt(info *brewv1.Info, t *tab.Tab, requested bool, hopsVersion string) *InstallReceipt

NewInstallReceipt creates an install receipt for a formula.

type Source

type Source struct {
	Spec       string          `json:"spec"`
	Versions   brewv1.Versions `json:"versions"`
	Path       string          `json:"path"`
	TapGitHead string          `json:"tap_git_head"`
	Tap        string          `json:"tap"`
}

Source section of the receipt.

Jump to

Keyboard shortcuts

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