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.
Click to show internal directories.
Click to hide internal directories.