pkg

package
v0.0.0-...-5cdbd86 Latest Latest
Warning

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

Go to latest
Published: May 14, 2025 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetSha

func GetSha(repo string, ref string) (string, error)

GetSha returns the SHA for a given reference, or error if sha is not found

func InputManifestToManifest

func InputManifestToManifest(in model.InputManifest) (model.Manifest, error)

func ReadInManifest

func ReadInManifest(manifestFile string) (model.InputManifest, error)

func ReadManifest

func ReadManifest(manifestFile string) (model.Manifest, error)

func SetupWorkDir

func SetupWorkDir(dir string) error

The release expects a working directory with: * sources/ contains all of the sources to build from. These should not be modified * work/ initially contains all the sources, but may be modified during the build * out/ contains all final artifacts

func Sources

func Sources(manifest model.Manifest) error

Sources will copy all dependencies require, pulling from Github if required, and set up the working tree. This includes locally tagging all git repos with the version being built, so that the right version is present in binaries.

func StandardizeManifest

func StandardizeManifest(manifest *model.Manifest) error

StandardizeManifest will convert a manifest to a fixed SHA, rather than a branch This allows outputting the exact version used after the build is complete

func TagRepo

func TagRepo(manifest model.Manifest, repo string) error

TagRepo tags a given git repo with the version from the manifest.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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