brewfmt

package
v0.1.0-beta.2 Latest Latest
Warning

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

Go to latest
Published: May 23, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ArchiveFile

func ArchiveFile(name, version string, revision, rebuild int, plat platform.Platform) string

ArchiveFile produces the bottle archive filename from the given information.

Pattern:

NAME--VERSION[_REVISION].[PLATFORM].bottle[.REBUILD].tar.gz

Examples:

  • cowsay--3.04_1.arm64_sonoma.bottle.tar.gz
  • pkl--0.25.3.arm64_sonoma.bottle.1.tar.gz

func PkgVersion

func PkgVersion(version string, revision int) string

Tag produces a bottle tag for the given version information.

Pattern:

VERSION[_REVISION][-REBUILD]

This tag will vary from the formula version when the "rebuild" field is set in the formula's bottle, which signals the bottle has been rebuilt and retagged without changing the version.

func Repo

func Repo(name string) string

Repo produces a repository name from a name.

See the implementation for the edge cases that make this output different than the formula's name.

Pattern:

NAME[/PINNED_VERSION]

func Tag

func Tag(version string, revision, rebuild int) string

Tag produces a bottle tag for the given version information.

Pattern:

VERSION[_REVISION][-REBUILD]

This tag will vary from the formula version when the "rebuild" field is set in the formula's bottle, which signals the bottle has been rebuilt and retagged without changing the version.

Types

This section is empty.

Jump to

Keyboard shortcuts

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