builds

package
v0.15.11 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2024 License: Apache-2.0 Imports: 6 Imported by: 0 modules, 0 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 Find

func Find(fsys fs.FS, architectures []string) (map[string]BuildGroup, error)

Find walks the given filesystem and returns a map of build groups, where each group is keyed by the origin package name, and contains the origin package and its subpackages. Find expects the filesystem to be laid out just like Melange outputs built APKs, starting with a "packages" directory containing subdirectories for each architecture, and APK files within those subdirectories.

Types

type BuildGroup

type BuildGroup struct {
	Origin      Package
	Subpackages []Package
}

BuildGroup describes a set of Packages that were produced as a result of a Melange build of a package definition, which includes the origin package and 0-n subpackages as well.

type Package

type Package struct {
	// FsysPath is the path to the package file on the filesystem.
	FsysPath string

	// FileInfo is the file info of the package file.
	FileInfo fs.FileInfo

	// PkgInfo is the parsed package information (found in an APK's PKGINFO file).
	PkgInfo *goapk.Package
}

Package describes a built (e.g. by Melange) APK package file that resides on a filesystem.

Jump to

Keyboard shortcuts

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