source

package
v0.62.1 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2026 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Fetch added in v0.59.1

func Fetch(ctx context.Context, opts *FetchOptions) error

Fetch downloads the artifact named by opts.URI into the current working directory, optionally verifies its checksum, and optionally extracts it. The URI is parsed and used as data (never passed to a shell).

func FetchSourceFromMelange

func FetchSourceFromMelange(ctx context.Context, filePath, destDir string) (*config.Configuration, error)

FetchSourceFromMelange tries its best to fetch the source from a melange yaml or an apk package.

func GitCheckout added in v0.46.1

func GitCheckout(ctx context.Context, opts *GitCheckoutOptions) error

Types

type FetchOptions added in v0.59.1

type FetchOptions struct {
	URI             string
	Directory       string // where to extract; relative to the current working directory
	StripComponents int
	Extract         bool
	ExpectedSHA256  string
	ExpectedSHA512  string
	Delete          bool
}

FetchOptions describes a native equivalent of the built-in `fetch` pipeline. Values come from the melange config and are used only as data: a URL, a filename, and argv elements.

type GitCheckoutOptions added in v0.46.1

type GitCheckoutOptions struct {
	Repository        string
	Destination       string
	ExpectedCommit    string
	CherryPicks       string
	Patches           string
	WorkspaceDir      string // Directory where patch files are located (usually config dir)
	RecurseSubmodules bool
}

Jump to

Keyboard shortcuts

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