archive

package
v1.25.1 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2024 License: MIT Imports: 17 Imported by: 0

Documentation

Overview

Package archive implements the pipe interface with the intent of archiving and compressing the binaries, readme, and other artifacts. It also provides an Archive interface which represents an archiving format.

Index

Constants

This section is empty.

Variables

View Source
var ErrArchiveDifferentBinaryCount = errors.New("archive has different count of binaries for each platform, which may cause your users confusion.\nLearn more at https://goreleaser.com/errors/multiple-binaries-archive\n") // nolint:revive

ErrArchiveDifferentBinaryCount happens when an archive uses several builds which have different goos/goarch/etc sets, causing the archives for some platforms to have more binaries than others. GoReleaser breaks in these cases as it will only cause confusion to other users.

Functions

func NewEnhancedArchive added in v0.93.2

func NewEnhancedArchive(a archive.Archive, wrap string) archive.Archive

NewEnhancedArchive enhances a pre-existing archive.Archive instance with this pipe specifics.

Types

type EnhancedArchive added in v0.93.1

type EnhancedArchive struct {
	// contains filtered or unexported fields
}

EnhancedArchive is an archive.Archive implementation which decorates an archive.Archive adding wrap directory support, logging and windows backslash fixes.

func (EnhancedArchive) Add added in v0.93.1

func (d EnhancedArchive) Add(f config.File) error

Add adds a file.

func (EnhancedArchive) Close added in v0.93.1

func (d EnhancedArchive) Close() error

Close closes the underlying archive.

type Pipe

type Pipe struct{}

Pipe for archive.

func (Pipe) Default

func (Pipe) Default(ctx *context.Context) error

Default sets the pipe defaults.

func (Pipe) Run

func (Pipe) Run(ctx *context.Context) error

Run the pipe.

func (Pipe) String

func (Pipe) String() string

Jump to

Keyboard shortcuts

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