mere

package module
v0.0.0-...-6000bcd Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2021 License: MIT Imports: 25 Imported by: 0

README

mere

Go Report Card codecov

An experimental package manager.

mere is a work in progress package manager being built for Mere Linux, taking inspiration from pacman, apk and brew.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Package

type Package struct {
	Name  string   `json:"name"`
	Deps  []string `json:"deps,omitempty"`
	Files []string `json:"files,omitempty"`
}

Package defines the properties needed to create an individual package.

type Source

type Source struct {
	URL       string `json:"url"`
	B3Sum     string `json:"b3sum" jsonschema:"minLength=64,maxLength=64"`
	LocalName string `json:"localName,omitempty"`
	// contains filtered or unexported fields
}

Source defines the properties needed to retrieve and validate a source file.

type Spec

type Spec struct {
	Name        string    `json:"name"`
	Description string    `json:"description"`
	Home        string    `json:"home"`
	Version     string    `json:"version"`
	Release     int64     `json:"release"`
	Sources     []Source  `json:"sources,omitempty"`
	BuildDeps   string    `json:"buildDeps,omitempty"`
	Build       string    `json:"build,omitempty"`
	Test        string    `json:"test,omitempty"`
	Install     string    `json:"install,omitempty"`
	Packages    []Package `json:"packages"`
	// contains filtered or unexported fields
}

Spec contains the properties needed to build one or more packages from the same source code.

func NewSpec

func NewSpec(path string, output io.Writer) (*Spec, error)

NewSpec constructs and validates new Spec structs from a given file.

func (*Spec) BuildSteps

func (s *Spec) BuildSteps() error

BuildSteps executes the build, test and install steps as defined in a package spec.

func (*Spec) Cleanup

func (s *Spec) Cleanup()

Cleanup removes the entire internal working directory.

Jump to

Keyboard shortcuts

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